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A,EAAkB,imBCAlBD,EAAAC,OAAA,EAAkB,yfCAlBD,EAAAC,OAAA,EAAkB,iDCAlBD,EAAAC,OAAA,EAAkB,kFCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?f940","webpack://_N_E/./src/utils/urlHelpers/decodeUrlParam.ts","webpack://_N_E/./src/components/ContentBlocks/MobileGridContent/index.tsx","webpack://_N_E/./src/components/ErrorPage/GridObject.tsx","webpack://_N_E/./src/components/ErrorPage/index.tsx","webpack://_N_E/./src/components/TableCaption/TableCaption.tsx","webpack://_N_E/./src/constants/analytics/pageSpecificRemoveAnalyticsKeys.ts","webpack://_N_E/./src/constants/images/defaultVideoPoster.ts","webpack://_N_E/./src/constants/images/rightArrowActive.ts","webpack://_N_E/./src/features/category/api/getCMSCategoryData.ts","webpack://_N_E/./src/features/pdp/api/getContentStackDefaultProductContent.ts","webpack://_N_E/./src/features/pdp/api/getContentStackPremiumProductContent.ts","webpack://_N_E/./src/features/pdp/components/ProductCarousel/PinchZoomImage/index.tsx","webpack://_N_E/./src/features/pdp/components/ProductCarousel/CarouselImage/index.tsx","webpack://_N_E/./src/features/pdp/components/ProductCarousel/CarouselComponent/index.tsx","webpack://_N_E/./src/features/pdp/components/ProductCarousel/utils/mapAprimoUrlToBeRemoved.ts","webpack://_N_E/./src/features/pdp/utils/analytics/trackImageInteractionPDP.ts","webpack://_N_E/./src/features/pdp/utils/format360Url.ts","webpack://_N_E/./src/features/prefooter/utils/buildPreFooterDataFromCMSData.ts","webpack://_N_E/./src/features/prefooter/utils/mergePrefooterBackendWithCMSData.ts","webpack://_N_E/./src/features/prefooter/utils/updatePrefooterBackendLinks.ts","webpack://_N_E/./src/features/prefooter/utils/getPageDependentPrefooterParams.ts","webpack://_N_E/./src/features/prefooter/api/getPreFooterData.ts","webpack://_N_E/./src/features/prefooter/components/PreFooter/index.tsx","webpack://_N_E/./src/features/product/api/getSylvaniaVideos.ts","webpack://_N_E/./src/features/product/utils/getProductReviewsURL.ts","webpack://_N_E/./src/hooks/useEagerLoad.ts","webpack://_N_E/./src/hooks/useResponsiveImage.ts","webpack://_N_E/./src/features/pdp/utils/hasCMSPremiumTable.ts","webpack://_N_E/./src/features/pdp/components/ProductDetailMetadata/ProductDetailMetadata.tsx","webpack://_N_E/./src/utils/analytics/track/trackReadMoreLinkPdp.ts","webpack://_N_E/./public/images/footer/footer_down_arrow.svg","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/ProductSpecificationSkeleton.tsx","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/ProductDescriptionSkeleton.tsx","webpack://_N_E/./src/components/ProductDetail/ProductSpecificationRow/ProductSpecificationRow.tsx","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/index.tsx","webpack://_N_E/./src/features/pdpAffinity/api/postAddAffinityItemsToCart.ts","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsPictureList/RelatedPartsPictureList.tsx","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsCheckboxNameList/RelatedPartCheckboxName.tsx","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsCheckboxNameList/RelatedPartsCheckboxNameList.tsx","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/AddToCartButtonSection/AddToCartButtonSection.tsx","webpack://_N_E/./src/utils/errorsHandling/getErrorDetails.ts","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/AffinityErrorNotification.tsx","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/index.tsx","webpack://_N_E/./src/features/pdpAffinity/components/RelatedPartCard/index.tsx","webpack://_N_E/./src/features/pdpAffinity/components/CompleteTheJobDescription/index.tsx","webpack://_N_E/./src/features/pdpAffinity/components/ShowAllItemsBtn/index.tsx","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlockV2/index.tsx","webpack://_N_E/./src/features/contentstack/components/CMSCompleteTheJob/CMSCompleteTheJob.tsx","webpack://_N_E/./src/features/contentstack/components/CMSSEOComparisonChart/CMSSEOComparisonChart.tsx","webpack://_N_E/./src/features/pdp/components/BuyersGuide/BuyersGuideBanner.tsx","webpack://_N_E/./src/features/pdp/components/BuyersGuide/BuyersGuideWrapper.tsx","webpack://_N_E/./src/features/pdp/components/BuyersGuide/index.tsx","webpack://_N_E/./src/features/certona/components/HorizontalScrolledPartCardSkeleton/HorizontalScrolledPartCardSkeleton.tsx","webpack://_N_E/./src/components/ProductDetail/NewCertonaForOos/DoesNotFitNotification.tsx","webpack://_N_E/./src/components/ProductDetail/NewCertonaForOos/index.tsx","webpack://_N_E/./src/features/pdp/components/CMSModularHandler/CMSPDPYmme/CMSPDPYmme.tsx","webpack://_N_E/./src/features/pdp/components/SEOProductSchema/SEOProductSchema.tsx","webpack://_N_E/./src/utils/crossBrowserHelpers/getPosition.ts","webpack://_N_E/./src/features/pdp/components/BazaarVoice/ReviewsContent.tsx","webpack://_N_E/./src/features/pdp/components/BazaarVoice/BazaarVoice.tsx","webpack://_N_E/./src/features/pdp/components/CMSModularHandler/CMSBreadcrumbs/CMSBreadcrumbs.tsx","webpack://_N_E/./src/features/pdp/utils/filterCTJBlocks.ts","webpack://_N_E/./src/features/pdp/utils/prioritizeLCP.ts","webpack://_N_E/./src/features/pdp/components/CMSModularHandler/CMSModularHandler.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/LeftSection.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/RightSection.tsx","webpack://_N_E/./src/components/ProductDetail/accessoriesOptions.tsx","webpack://_N_E/./src/features/pdp/api/get360Inventory.ts","webpack://_N_E/./src/features/pdp/api/getProductVideos.ts","webpack://_N_E/./src/features/pdp/api/getGcpProductVideos.ts","webpack://_N_E/./src/features/pdp/components/ProductCarousel/utils/map360CarouselItem.ts","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/YMMESpecificInstallVideoBanner/YMMESpecificInstallVideoBanner.tsx","webpack://_N_E/./src/features/pdp/api/getGcp360Image.ts","webpack://_N_E/./src/features/pdp/api/getGcpProductVehicleImage.ts","webpack://_N_E/./src/features/pdp/components/ProductCarousel/index.tsx","webpack://_N_E/./src/utils/analytics/track/trackCustomizeSkuStart.ts","webpack://_N_E/./src/components/ProductDetail/analytics/analyticsPDPReviewRating.ts","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/ProductAvailabilityInfoSkeleton.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPrice/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PriceInfoPopover/useShowSkeletonOrNoPrice.ts","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PriceInfoPopover/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/CorePriceInfoPopover/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPriceQuantity/utils/getPopoverPrices.ts","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPriceQuantity/utils/getDealPrice.ts","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPriceQuantity/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SeoContent/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpTitleNotes/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpTechNotes/index.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/WiperBladeNotification/WiperBladeNotification.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SuperSkus/SuperSkuOptionSelector.tsx","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/index.tsx","webpack://_N_E/./src/components/ProductDetail/productDetailAnalytics.ts","webpack://_N_E/./src/features/pdp/hooks/useHandleRedirect.ts","webpack://_N_E/./src/components/ProductDetail/index.tsx","webpack://_N_E/./src/pages/products/[...slug].tsx","webpack://_N_E/./src/utils/STARC/STARC.ts","webpack://_N_E/./src/utils/analytics/invalidDataCheck.ts","webpack://_N_E/./src/utils/analytics/legacyUtils/analyticsDynamicPageName.ts","webpack://_N_E/./src/utils/crossBrowserHelpers/scroll.ts","webpack://_N_E/./src/utils/getImagePaths.ts","webpack://_N_E/./src/components/ContentBlocks/MobileGridContent/styles.module.scss","webpack://_N_E/./src/components/ErrorPage/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/NewCertonaForOos/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/CorePriceInfoPopover/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPrice/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpPriceQuantity/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpTechNotes/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PdpTitleNotes/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/PriceInfoPopover/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SeoContent/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/LeftSection.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/RightSection.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/SuperSkus/SuperSkuStyles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/WiperBladeNotification/WiperBladeNotificationStyles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/YMMESpecificInstallVideoBanner/YMMESpecificInstallVideoBanner.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductAvailabilityInfo/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/ProductDescriptionSkeleton.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/ProductSpecificationSkeleton.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductDetailSpecification/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/ProductSpecificationRow/styles.module.scss","webpack://_N_E/./src/components/ProductDetail/styles.module.scss","webpack://_N_E/./src/components/TableCaption/TableCaption.module.scss","webpack://_N_E/./src/features/certona/components/HorizontalScrolledPartCardSkeleton/styles.module.scss","webpack://_N_E/./src/features/pdp/components/BazaarVoice/styles.module.scss","webpack://_N_E/./src/features/pdp/components/BuyersGuide/styles.module.scss","webpack://_N_E/./src/features/pdp/components/CMSModularHandler/CMSBreadcrumbs/CMSBreadcrumbs.module.scss","webpack://_N_E/./src/features/pdp/components/CMSModularHandler/CMSPDPYmme/CMSPDPYmme.module.scss","webpack://_N_E/./src/features/pdp/components/ProductCarousel/CarouselComponent/carousel.module.scss","webpack://_N_E/./src/features/pdp/components/ProductCarousel/PinchZoomImage/styles.module.scss","webpack://_N_E/./src/features/pdp/components/ProductCarousel/styles.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/AddToCartButtonSection/AddToCartButtonSection.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsCheckboxNameList/RelatedPartCheckboxName.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsCheckboxNameList/RelatedPartsCheckboxNameList.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/components/RelatedPartsPictureList/RelatedPartsPictureList.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlock/styles.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/AffinityRelatedProductsBlockV2/styles.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/CompleteTheJobDescription/styles.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/RelatedPartCard/styles.module.scss","webpack://_N_E/./src/features/pdpAffinity/components/ShowAllItemsBtn/styles.module.scss","webpack://_N_E/./src/theme/sharedVariables.module.scss","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/products/[...slug]\",\n function () {\n return require(\"private-next-pages/products/[...slug].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/products/[...slug]\"])\n });\n }\n ","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nexport const decodeUrlParam = (url: string, param: string) => {\n if (!url.includes(param)) {\n return url;\n }\n const [urlBeforeParam, urlWithParam] = url.split(param);\n let urlAfterParam = '';\n let extractedParam = urlWithParam;\n if (urlWithParam.includes('&')) {\n extractedParam = urlWithParam.substring(0, urlWithParam.indexOf('&'));\n urlAfterParam = urlWithParam.substring(urlWithParam.indexOf('&'));\n }\n const decodedParam = decodeURIComponent(extractedParam);\n\n return `${urlBeforeParam}${param}${decodedParam}${urlAfterParam}`;\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport { useMediaQuery } from '../../../hooks/useMediaQuery';\nimport { Grid } from '../../Grid';\nimport Image, { akamaiLoader } from '@/components/NextImage';\nimport { useResponsiveImage } from '../../../hooks/useResponsiveImage';\nimport { SmartLink as Link } from '../../../utils/smartLink';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport DeviceWrapper from '../../AZCustomComponent/DeviceWrapper';\nimport { useEagerLoad } from '../../../hooks/useEagerLoad';\nimport styles from './styles.module.scss';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport { decodeUrlParam, parseUrl, sanitizeUrlWithParamList } from '@/utils/urlHelpers';\nimport { acceptableShelfQueryParams } from '@/constants/queryParams';\nimport type { GridContentBlock } from '@/types/legacy';\n\nconst gridTypes = {\n GRID4: 'GRID4',\n};\n\ntype Props = {\n contentBlock: Omit;\n // TODO: Fix type for this ref\n gridRef?: React.Ref;\n};\ntype ContainProps = {\n contain: boolean;\n children: React.ReactNode;\n};\n\nconst ContainOverflow = ({ contain, children }: ContainProps) => (\n
\n {contain && (\n \n {children}\n
\n )}\n {!contain && children}\n \n);\n\nconst trackHomeLinkInteractionBySection = (linkName: string, section: string, id: string) => {\n clickTrack({\n homeLinkName: linkName,\n linkBySection: section,\n clickedProductId: id,\n eventType: 'homeInteractionsBySection',\n });\n};\n\nexport const MobileGridContent = (props: Props) => {\n const { contentBlock } = props;\n const eager = useEagerLoad({\n isEagerLoadDesktop: contentBlock?.isEagerLoadDesktop,\n isEagerLoadMobile: contentBlock?.isEagerLoadMobile,\n isEagerLoadTablet: contentBlock?.isEagerLoadTablet,\n });\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n\n const homeLinkInteraction = (linkName: string, section: string) => {\n const sectionName =\n section\n .replace(/<[^>]+>/gi, '')\n .replace(/ /gi, '')\n .trim() || '';\n trackHomeLinkInteractionBySection(linkName, sectionName, '');\n };\n\n const renderItemsContentText = (item: any) => {\n if (item.text) {\n return (\n ({\n __html: item.text,\n }))()}\n />\n );\n }\n };\n\n const renderMapGridItems = (getResponsiveImage: (imagePath: string) => string) => {\n const { contentBlock } = props;\n const grid =\n (contentBlock.childContentBlockList && Object.values(contentBlock.childContentBlockList)) ||\n [];\n let gridMapItems = null;\n if (grid) {\n gridMapItems = grid.map((item: any, index: number) => {\n let link = item.CTALink;\n if (link) {\n const {\n url,\n query: { intcmp },\n } = parseUrl(link);\n const sanitizedRedirectPath = sanitizeUrlWithParamList(\n {\n intcmp,\n },\n acceptableShelfQueryParams,\n url\n );\n\n link = decodeUrlParam(sanitizedRedirectPath, 'intcmp');\n }\n const key = `${item.CTALink}-${index}`;\n return (\n \n
\n {\n homeLinkInteraction(item.text, contentBlock.overallHeadLine);\n }}\n id={`homeLinkId-${index}`}\n samePage={true}\n >\n \n\n {renderItemsContentText(item)}\n \n
\n
\n );\n });\n }\n\n return gridMapItems;\n };\n\n const deviceClassName = {\n desktop: contentBlock?.desktop || false,\n tablet: contentBlock?.tablet || false,\n mobile: contentBlock?.mobile || false,\n };\n let overallHeadLine = null;\n\n if (contentBlock.overallHeadLine) {\n overallHeadLine = (\n ({\n __html: contentBlock.overallHeadLine,\n }))()}\n />\n );\n }\n\n const layout = contentBlock?.layoutCode ?? '';\n\n // eslint-disable-next-line testing-library/render-result-naming-convention\n const renderMGItems = renderMapGridItems(useResponsiveImage);\n\n if (layout !== gridTypes.GRID4) {\n return null;\n }\n\n const theme = (contentBlock?.theme ?? '').toLowerCase() === 'white' ? styles.whiteTheme : '';\n\n return (\n \n \n \n \n \n \n {overallHeadLine}\n \n\n \n
\n \n\n {contentBlock.CTAName && contentBlock.CTALink ? (\n \n \n {contentBlock.CTAName}\n \n \n ) : null}\n\n \n {renderMGItems}\n \n \n \n \n \n \n );\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nconst GridObject = {\n tablet: true,\n layoutCode: 'GRID4',\n desktop: true,\n overallHeadLine: '

FEATURED CATEGORIES

\\n',\n altText: null,\n childContentBlockList: [\n {\n altText: 'Batteries',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-battery.jpg',\n CTALink: '/ignition-tune-up-and-routine-maintenance/battery',\n text: 'Batteries',\n },\n {\n altText: 'Alternators',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/P11/MobileFirst/FY20P11-Grid4-Alternators.jpg',\n CTALink: '/batteries-starting-and-charging/alternator',\n text: 'Alternators',\n },\n {\n altText: 'Brake Pads',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-brakepads.jpg',\n CTALink: '/brakes-and-traction-control/brake-pads',\n text: 'Brake Pads',\n },\n {\n altText: 'Brake Rotors',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-rotors.jpg',\n CTALink: '/brakes-and-traction-control/brake-rotor',\n text: 'Brake Rotors',\n },\n {\n altText: 'Engine Oil',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-engineoil.jpg',\n CTALink: '/motor-oil-and-transmission-fluid/engine-oil',\n text: 'Engine Oil',\n },\n {\n altText: 'Oil Filter',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-oilfilters.jpg',\n CTALink: '/external-engine/oil-filter',\n text: 'Oil Filter',\n },\n {\n altText: 'Headlights',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-headlights.jpg',\n CTALink: '/collision-body-parts-and-hardware/headlight',\n text: 'Lighting',\n },\n {\n altText: 'Wiper Blade Windhield',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/P09/MobilFirst/fy20p09-grid4-wipers.jpg',\n CTALink: '/ignition-tune-up-and-routine-maintenance/wiper-blade-windshield',\n text: 'Wipers',\n },\n {\n altText: 'Shocks & Struts',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-suspension.jpg',\n CTALink: '/suspension-steering-tire-and-wheel/shock-strut-front',\n text: 'Shocks & Struts',\n },\n {\n altText: 'AC Compressors',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/P11/MobileFirst/FY20P11-Grid4-ACCompressor.jpg',\n CTALink: '/cooling-heating-and-climate-control/a-c-compressor',\n text: 'AC Compressors',\n },\n {\n altText: 'Trailer Hitches',\n imageURL:\n 'https://www.autozone.com/cdn/images/B2C/US/media/FY20/Test/Grid4/fy20p0506-grid4-customhitches.jpg',\n CTALink: '/hitches-balls-mounts-and-hitch-accessories/trailer-hitch',\n text: 'Custom Hitches',\n },\n {\n altText: 'Tools And Equipment',\n imageURL:\n ' https://www.autozone.com/cdn/images/B2C/US/media/FY20/P11/MobileFirst/FY20P11-Grid4-Tools.jpg',\n CTALink: '/tools-and-equipment',\n text: 'Tools',\n },\n ],\n themeCode: 'White',\n mobile: true,\n CTALink: null,\n CTAName: null,\n theme: 'White',\n};\n\nexport default GridObject;\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useEffect } from 'react';\nimport cx from 'classnames';\nimport Hidden from '../Hidden';\nimport { AZButton } from '../AZButton';\nimport GridObject from './GridObject';\nimport { MobileGridContent } from '../ContentBlocks/MobileGridContent';\nimport styles from './styles.module.scss';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useAnalytics } from '@/utils/analytics/useAnalytics';\nimport { usePageViewCall } from '@/utils/analytics/usePageViewCall';\nimport { getPageName } from '@/utils/analytics/legacyUtils/getPageName';\nimport { getSeoPageType } from '@/utils/analytics/legacyUtils/getSeoPageType';\nimport { getAnalyticsRelativeComplementOf } from '@/utils/analytics/getAnalyticsRelativeComplementOf';\nimport { pageTypes } from '@/constants/page';\nimport { siteSections } from '@/utils/siteSections';\n\nconst { siteSectionPageUnavailable } = siteSections;\n\nconst labelMap = {\n heading: 'label_not_found_sorry',\n textTwoMobTablet:\n 'label_not_found_You_can_head_back_to_the_AutoZone_homepage_or_choose_one_of_the_categories_below',\n textOne: 'label_not_found_text_one',\n textTwoDesk: 'label_not_found_text_two',\n textThree: 'label_not_found_text_three',\n};\n\ninterface ErrorPage {\n isWithAnalytics?: boolean;\n}\n\nconst ErrorPage = ({ isWithAnalytics = true }: ErrorPage) => {\n const matchesMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const pageViewCall = usePageViewCall();\n const locale = useLocale();\n const labels = useLabels(labelMap);\n const { heading, textTwoMobTablet, textOne, textTwoDesk, textThree } = labels;\n const isLocaleUSA = locale === countryCodes.us;\n const isBrSite = locale === countryCodes.ptBr;\n\n const hasSetupAnalytics = useAnalytics();\n useEffect(() => {\n if (hasSetupAnalytics && isWithAnalytics) {\n const pageSpecificAnalyticsData = {\n pageName: getPageName(siteSectionPageUnavailable, 'not-found'),\n siteSection: siteSectionPageUnavailable,\n pageType: pageTypes.notFound,\n seoPageType: getSeoPageType('', ''),\n pageHierarchy: '',\n contentBlockNames: [],\n contentBlockTypes: [],\n };\n pageViewCall(\n pageSpecificAnalyticsData,\n getAnalyticsRelativeComplementOf(pageSpecificAnalyticsData, undefined)\n );\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [hasSetupAnalytics, isWithAnalytics]);\n\n const handleOnPress = () => {\n // @ts-expect-error fix use of window.location\n window.location = '/';\n };\n\n return (\n
\n \n {matchesMobile ? (\n <>\n
\n

\n {isBrSite ? 'OPA!' : heading}\n

\n

\n {isBrSite\n ? 'Parece que algo deu errado do nosso lado, mas estamos trabalhando nisso!'\n : textOne}\n

\n
\n
\n
\n \n

\n {isBrSite\n ? 'Clique no botão para voltar à nossa página inicial.'\n : textTwoMobTablet}\n

\n
\n
\n \n
\n
\n \n ) : (\n
\n
\n

\n {isBrSite ? 'OPA!' : heading}\n

\n
\n

\n {isBrSite\n ? 'Parece que algo deu errado do nosso lado, mas estamos trabalhando nisso!'\n : textOne}\n

\n {isDesktop ? (\n

\n {isBrSite ? 'Clique no botão para voltar à nossa página inicial.' : textTwoDesk}\n

\n ) : (\n

\n {isBrSite\n ? 'Clique no botão para voltar à nossa página inicial.'\n : textTwoMobTablet}\n

\n )}\n
\n
\n \n
\n
\n
\n )}\n
\n {isLocaleUSA && }\n
\n );\n};\n\nexport default ErrorPage;\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport * as React from 'react';\nimport cx from 'classnames';\nimport styles from './TableCaption.module.scss';\n\nexport function TableCaption({ dataTestId, captionside, children }: Props) {\n return (\n \n {children}{' '}\n \n );\n}\n\ntype Props = {\n children?: React.ReactNode;\n captionside?: string;\n dataTestId?: string;\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nexport const searchAnalyticsKeys = [\n 'prodView',\n 'productBrandList',\n 'productCorePriceList',\n 'productDealMessage',\n 'productFilterSelection',\n 'productFindingMethod',\n 'productFitmentBanner',\n 'productFitmentCheckMessage',\n 'productGuide',\n 'productIdList',\n 'productNotAvailableList',\n 'productPart',\n 'productPartList',\n 'productPartNumberList',\n 'productPrice',\n 'productRecommendationTypeList',\n 'productRepositoryIdList',\n 'productStrikeThroughPricing',\n 'productToastNotification',\n];\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const defaultVideoPoster = {\n src: '/images/video-default-poster-gray.svg',\n alt: 'defaultVideoPoster',\n};\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const rightArrowActive = {\n src: '/images/arrow-right.svg',\n alt: 'right arrow',\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { getAxiosForClient } from '@/lib/axios';\nimport {\n type QueryClient,\n type UseQueryOptions,\n useQuery,\n type QueryFunctionContext,\n} from '@tanstack/react-query';\nimport type { FormattedContentStackCategoryPages } from '@/features/contentstack/interface';\nimport { getCategoryContent } from '@/features/contentstack/lib/category/getCategoryContent'; // eslint-disable-line no-restricted-imports\nimport { type PageContextType } from '@/next-types';\nimport { usePageType } from '../api/getPageType';\nimport { pageTypes } from '@/constants/page';\nimport { useSegments } from '@/features/header/api/getSegments';\n\nconst URL = `/api/contentstack/category`;\n\nconst getCMSCategoryData = async ({\n queryKey,\n}: QueryFunctionContext>) => {\n const [, , { segments, taxonomyPath, pageType }] = queryKey;\n const { data } = await getAxiosForClient().get(URL, {\n params: { taxonomyPath, pageType, segments: segments.join(',') },\n });\n\n return selector(data);\n};\n\nconst selector = (data: FormattedContentStackCategoryPages): FormattedContentStackCategoryPages =>\n data;\n\nconst getCategoryDataKey = (taxonomyPath: string, pageType: string, segments: string[]) =>\n ['cms', 'categorypage', { pageType, segments, taxonomyPath }] as const;\n\nexport const useCMSCategoryData = () => {\n const { data: pageTypeData } = usePageType();\n\n const isCategoryPage = pageTypeData?.pageType === pageTypes.CategoryGrouping;\n\n const enabled = isCategoryPage;\n\n const taxonomyPath = `${pageTypeData?.taxonomyPath ?? ''}${\n pageTypeData?.makeModelYearPath ?? ''\n }`;\n const pageType = pageTypeData?.subPageType ?? '';\n\n const data = useGetCMSCategoryData({\n enabled,\n taxonomyPath,\n pageType,\n });\n\n return {\n enabled,\n ...data,\n };\n};\n\nconst useGetCMSCategoryData = (\n options: UseQueryOptions & { taxonomyPath: string; pageType: string }\n) => {\n const { data: segments, isSuccess } = useSegments();\n return useQuery({\n queryKey: getCategoryDataKey(options.taxonomyPath, options.pageType, segments?.sort() ?? []),\n queryFn: getCMSCategoryData,\n enabled: options.enabled && isSuccess,\n });\n};\n\nexport const prefetchCMSCategoryData = (\n queryClient: QueryClient,\n taxonomyPath: string,\n pageType: string,\n context: PageContextType,\n userSegments: string[]\n) => {\n return queryClient.prefetchQuery({\n queryKey: getCategoryDataKey(taxonomyPath, pageType, userSegments),\n queryFn: () =>\n getCategoryContent(context.req, { ...context.query, taxonomyPath, pageType }, userSegments),\n });\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getAxiosForClient } from '@/lib/axios';\nimport type { FormattedContentStackDefaultPDP } from '@/features/contentstack/interface';\nimport { getContentStackDefaultPDPContent } from '@/features/contentstack/lib/productDetailsPage/getDefaultContent'; // eslint-disable-line no-restricted-imports\nimport { type PageContextType } from '@/next-types';\nimport {\n type QueryClient,\n useQuery,\n type QueryFunctionContext,\n type UseQueryOptions,\n} from '@tanstack/react-query';\nimport { useSegments } from '@/features/header/api/getSegments';\n\nconst URL = `/api/contentstack/productDetailsPages/default`;\n\ntype Options = {\n taxonomyPath: string;\n};\n\nconst getContentStackDefaultPdpContent = async ({\n queryKey,\n}: QueryFunctionContext>) => {\n const [, , , { segments, taxonomyPath }] = queryKey;\n const response = await getAxiosForClient().get(URL, {\n params: {\n segments: segments.join(','),\n taxonomyPath,\n },\n });\n\n return selector(response.data);\n};\n\nconst selector = (data: FormattedContentStackDefaultPDP) => {\n return data;\n};\n\nexport const getDefaultPDPKey = (taxonomyPath: string, segments: string[]) =>\n ['cms', 'default', 'pdp', { segments, taxonomyPath }] as const;\n\nexport const useContentStackDefaultPDPContent = (\n options: Omit<\n UseQueryOptions<\n FormattedContentStackDefaultPDP,\n unknown,\n FormattedContentStackDefaultPDP,\n ReturnType\n >,\n 'queryKey' | 'queryFn'\n > &\n Options\n) => {\n const { data: segments, isSuccess } = useSegments();\n return useQuery({\n queryFn: getContentStackDefaultPdpContent,\n queryKey: getDefaultPDPKey(options.taxonomyPath, segments?.sort() ?? []),\n enabled: options.enabled && !!options.taxonomyPath && isSuccess,\n });\n};\n\nexport const prefetchContentStackDefaultPDPContent = (\n queryClient: QueryClient,\n taxonomyPath: string,\n context: PageContextType,\n userSegments: string[]\n) => {\n return queryClient.prefetchQuery({\n queryKey: getDefaultPDPKey(taxonomyPath, userSegments),\n queryFn: () =>\n getContentStackDefaultPDPContent(\n context.req,\n {\n ...context.query,\n taxonomyPath,\n },\n userSegments\n ),\n });\n};\n\nexport const getContentStackDefaultPDPContentFromCache = (\n queryClient: QueryClient,\n taxonomyPath: string,\n userSegments: string[]\n) => {\n return queryClient.getQueryData(\n getDefaultPDPKey(taxonomyPath, userSegments)\n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getAxiosForClient } from '@/lib/axios';\nimport type { FormattedContentStackPremiumPDP } from '@/features/contentstack/interface';\nimport { getContentStackPremiumPDPContent } from '@/features/contentstack/lib/productDetailsPage/getPremiumContent'; // eslint-disable-line no-restricted-imports\nimport { type PageContextType } from '@/next-types';\nimport {\n type QueryClient,\n useQuery,\n type QueryFunctionContext,\n type UseQueryOptions,\n} from '@tanstack/react-query';\nimport { useSegments } from '@/features/header/api/getSegments';\n\nconst URL = `/api/contentstack/productDetailsPages/premium`;\n\ntype Options = {\n taxonomyPath: string;\n brandName: string;\n};\n\nconst getContentStackPremiumPdpContent = async ({\n queryKey,\n}: QueryFunctionContext>) => {\n const [, , , { segments, taxonomyPath, brandName }] = queryKey;\n // NOTE: this is needed due to https://github.com/TanStack/query/issues/1196 (despite setting the enabled option to false, useQuery still initiates a fetch)\n if (!taxonomyPath) return null;\n const response = await getAxiosForClient().get(URL, {\n params: {\n segments: segments.join(','),\n taxonomyPath,\n brandName,\n },\n });\n return selector(response.data);\n};\n\nconst selector = (data: FormattedContentStackPremiumPDP) => {\n return data;\n};\n\nexport const getPremiumPDPKey = (taxonomyPath: string, segments: string[], brandName: string) =>\n ['cms', 'premium', 'pdp', { segments, taxonomyPath, brandName }] as const;\n\nexport const useContentStackPremiumPDPContent = (\n options: Omit<\n UseQueryOptions<\n FormattedContentStackPremiumPDP,\n unknown,\n FormattedContentStackPremiumPDP,\n ReturnType\n >,\n 'queryKey' | 'queryFn'\n > &\n Options\n) => {\n const { data: segments, isSuccess } = useSegments();\n const isEnabled = options.enabled && !!options.taxonomyPath && isSuccess;\n const queryResult = useQuery({\n queryFn: getContentStackPremiumPdpContent,\n queryKey: getPremiumPDPKey(options.taxonomyPath, segments?.sort() ?? [], options.brandName),\n enabled: isEnabled,\n });\n\n return {\n ...queryResult,\n isLoading: isEnabled ? queryResult.isLoading : false,\n };\n};\n\nexport const prefetchContentStackPremiumPDPContent = (\n queryClient: QueryClient,\n taxonomyPath: string,\n context: PageContextType,\n userSegments: string[],\n brandName: string\n) => {\n return queryClient.prefetchQuery({\n queryKey: getPremiumPDPKey(taxonomyPath, userSegments, brandName),\n queryFn: () =>\n getContentStackPremiumPDPContent(\n context.req,\n {\n ...context.query,\n taxonomyPath,\n brandName,\n },\n userSegments\n ),\n });\n};\n\nexport const getContentStackPremiumPDPContentFromCache = (\n queryClient: QueryClient,\n taxonomyPath: string,\n userSegments: string[],\n brandName: string\n) => {\n return queryClient.getQueryData(\n getPremiumPDPKey(taxonomyPath, userSegments, brandName)\n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport type { CarouselItem } from '@/components/Carousel/ThumbnailComponent/types';\nimport { Fade } from '@/components/Fade/Fade';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport cx from 'classnames';\nimport React, { type MouseEventHandler, useEffect, useRef, useState } from 'react';\nimport {\n type ReactZoomPanPinchProps,\n TransformComponent,\n TransformWrapper,\n} from 'react-zoom-pan-pinch';\nimport carouselStyles from '../styles.module.scss';\nimport styles from './styles.module.scss';\nimport NextImage, { blurDataURLPlaceholder } from '@/components/NextImage';\n\ntype PinchZoomImageProps = {\n item: CarouselItem;\n handleClick?: MouseEventHandler;\n pinchZoomProps?: ReactZoomPanPinchProps;\n overLayText?: string;\n priority?: boolean;\n showMediumImageBeforeInteraction: boolean;\n itemIndex: number;\n imageSrc: string;\n};\n\nexport const PinchZoomImage = ({\n item,\n imageSrc,\n handleClick,\n pinchZoomProps,\n overLayText,\n priority,\n itemIndex,\n}: PinchZoomImageProps) => {\n const [showOverlayText, setShowOverlayText] = useState(!!overLayText);\n const overlayTextTimerRef = useRef(null);\n\n useEffect(() => {\n if (overLayText) {\n overlayTextTimerRef.current = setTimeout(() => {\n setShowOverlayText(false);\n }, 2000);\n }\n\n return () => {\n if (overlayTextTimerRef.current) {\n clearTimeout(overlayTextTimerRef.current);\n }\n };\n }, [overLayText]);\n\n return (\n
\n \n \n \n \n
\n
\n {overLayText}\n
\n
\n
\n \n \n
\n );\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type MouseEventHandler, useState } from 'react';\nimport dynamic from 'next/dynamic';\nimport type { CarouselItem } from '@/components/Carousel/ThumbnailComponent/types';\nimport { type ReactZoomPanPinchRef, type ReactZoomPanPinchProps } from 'react-zoom-pan-pinch';\nimport { PinchZoomImage } from '../PinchZoomImage';\n\nconst LazyReactImageMagnify = dynamic(\n () => import('../ReactImageMagnify').then((mod) => mod.ReactImageMagnify),\n {\n ssr: false,\n }\n);\n\ntype CarouselImageProps = {\n useMagnify?: boolean;\n item: CarouselItem;\n handleClick?: MouseEventHandler;\n pinchZoomProps?: ReactZoomPanPinchProps;\n overLayText?: string;\n priority?: boolean;\n showMediumImageBeforeInteraction: boolean;\n itemIndex: number;\n};\n\nexport const CarouselImage = ({\n useMagnify,\n item,\n handleClick,\n pinchZoomProps,\n overLayText,\n priority,\n showMediumImageBeforeInteraction,\n itemIndex,\n}: CarouselImageProps) => {\n const [showMediumImage, setShowMediumImage] = useState(\n () => !!priority && showMediumImageBeforeInteraction\n );\n const dynamicImage = showMediumImage ? item.mediumImageURL : item.enlargedMediaUrl;\n const onZoomStart = (ref: ReactZoomPanPinchRef, event: TouchEvent | MouseEvent) => {\n pinchZoomProps?.onZoomStart?.(ref, event);\n\n setShowMediumImage(false);\n };\n\n if (useMagnify) {\n return (\n \n );\n }\n\n return (\n \n );\n};\n","/**\n * Copyright 2019-2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport Carousel from '@/components/Carousel';\nimport type {\n CarouselItem,\n ThumbnailClasses,\n ThumbnailProps,\n} from '@/components/Carousel/ThumbnailComponent/types';\nimport type { CarouselClasses } from '@/components/Carousel/types';\nimport NextImage from '@/components/NextImage';\nimport cx from 'classnames';\nimport React, { type MouseEventHandler, useEffect, useRef, useState } from 'react';\nimport { type ReactZoomPanPinchRef } from 'react-zoom-pan-pinch';\nimport root from 'window-or-global';\nimport { CarouselImage } from '../CarouselImage';\nimport styles from '../styles.module.scss';\nimport carouselStyle from './carousel.module.scss';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { defaultVideoPoster } from '@/constants/images/defaultVideoPoster';\nimport sharedVariables from '@/theme/sharedVariables.module.scss';\nimport { mapAprimoUrlToBeRemoved } from '../utils/mapAprimoUrlToBeRemoved';\nimport { trackImageInteractionPDP } from '../../../utils/analytics/trackImageInteractionPDP';\n\ntype Props = {\n carouselCaption?: string;\n classes?: CarouselClasses;\n controlled?: boolean;\n thumbnailClasses?: ThumbnailClasses;\n items: CarouselItem[];\n showMediumImageBeforeInteraction: boolean;\n useMagnify?: boolean;\n handleclick?: MouseEventHandler;\n overLayText?: string;\n onPinchToZoomImageInit?: () => void;\n} & ThumbnailProps;\n\nexport const CarouselComponent = ({\n imgTitle,\n selectedThumbnailIndex,\n onImageChange,\n groupedLayout,\n showAllThumbnails,\n verticalLayout,\n classes = {},\n thumbnailClasses = {},\n carouselCaption,\n useMagnify,\n handleclick,\n overLayText,\n controlled,\n onPinchToZoomImageInit,\n items,\n showMediumImageBeforeInteraction,\n}: Props) => {\n const aprimoPDPVideosEnabled = useFeatureFlag('APRIMO_PDP_VIDEO_ENABLED') === 'true';\n const pinchToZoomImages = useRef([]);\n const videoRefs = useRef([]);\n const [zoomedImages, setZoomedImages] = useState([]);\n\n useEffect(() => {\n videoRefs.current.forEach((element: HTMLVideoElement | HTMLIFrameElement, index: number) => {\n if ('controls' in element) {\n element.controls = false;\n }\n\n if (index !== selectedThumbnailIndex) {\n if ('currentTime' in element && element.currentTime) {\n element.pause();\n element.currentTime = 0;\n } else {\n const source = element.src;\n element.src = source;\n }\n }\n });\n\n const timeout = setTimeout(() => {\n videoRefs.current.forEach((element: HTMLVideoElement | HTMLIFrameElement) => {\n if ('controls' in element) {\n element.controls = true;\n }\n });\n }, parseInt(sharedVariables.videoTransitionTimeMilliseconds));\n\n return () => clearTimeout(timeout);\n }, [selectedThumbnailIndex]);\n\n const onZoomStop = (ref: ReactZoomPanPinchRef, index: number) => {\n if (ref.state.scale > 1 && !zoomedImages.includes(index)) {\n setZoomedImages([...zoomedImages, index]);\n } else if (ref.state.scale <= 1 && zoomedImages.includes(index)) {\n setZoomedImages(zoomedImages.filter((imageIndex) => imageIndex !== index));\n }\n };\n\n const handleImageChange = (\n index: number,\n carouselItem: CarouselItem,\n previousIndex?: number | void\n ) => {\n if (typeof previousIndex !== 'undefined' && pinchToZoomImages.current[previousIndex]) {\n //reset zoom when going to a new image\n pinchToZoomImages.current[previousIndex]?.resetTransform();\n setZoomedImages(zoomedImages.filter((imageIndex) => imageIndex !== previousIndex));\n }\n\n onImageChange?.(index, carouselItem);\n };\n\n const handleThumbnailClick = (carouselItem: CarouselItem) => {\n const { enlargedMediaUrl } = carouselItem;\n\n const index = items.findIndex((img) => img.enlargedMediaUrl === enlargedMediaUrl);\n\n trackImageInteractionPDP(`PDP|${index + 1}`, `${index + 1}`);\n };\n\n useEffect(() => {\n setTimeout(() => {\n root.dispatchEvent(new Event('resize'));\n }, 0);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n
\n \n {items.map((item, i) => {\n const { type, title, enlargedMediaUrl, alt } = item;\n const itemKey = `${i}-${enlargedMediaUrl ? enlargedMediaUrl : ''}`;\n if (type === 'image') {\n return (\n onZoomStop(ref, i),\n ref: (el: ReactZoomPanPinchRef) => (pinchToZoomImages.current[i] = el),\n }}\n />\n );\n } else if (type === 'video') {\n return (\n
\n {aprimoPDPVideosEnabled ? (\n
\n );\n } else if (type === 'spin360') {\n return (\n \n \n
\n );\n }\n })}\n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\n// This should be removed for 6.7.0\nexport const mapAprimoUrlToBeRemoved = (text: string | undefined) => {\n if (!text) return '';\n const regex = /https:\\/\\/p1(\\.[A-Za-z]*)*.aprimocdn.net\\/autozone/i;\n\n return text.replace(regex, 'https://videos.autozone.com/aprimo');\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport type { CustomLinkName } from '@/types/analytics';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\n\nexport const trackImageInteractionPDP = (\n customLinkName: CustomLinkName | `PDP|${number}`,\n imageRank?: string\n) => {\n const utag = window.utag_data;\n const pagetype = utag?.pageType ?? '';\n const pagename = utag?.pageName ?? '';\n const sitesection = utag?.siteSection ?? '';\n\n clickTrack({\n eventType: 'imageInteractionPDP',\n ...(imageRank\n ? {\n imageNumber: imageRank,\n }\n : {}),\n customLinkName,\n pageName: pagename,\n pageType: pagetype,\n siteSection: sitesection,\n });\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport environmentConfig from '@/config/environment';\nimport type { Locale } from '@/types/i18n';\n\nexport const format360Url = (uri: string, locale: Locale, imageWidth?: number): string => {\n const domainUrl = environmentConfig.THREE_SIXTY_IMAGE_BASE_URL || 'https://images.autozone.com';\n const baseUrl = `${domainUrl}/360/${locale.replace('-', '/')}`;\n return imageWidth ? `${baseUrl}${uri}?imwidth=${imageWidth}` : `${baseUrl}${uri}`;\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ContentStackPrefooter } from '@/features/contentstack/interface';\nimport { type PreFooterMiddleItem } from '../interface';\n\nconst buildPreFooterMiddleData = (\n cmsPrefooter: NonNullable[0]\n): PreFooterMiddleItem => {\n return {\n name: cmsPrefooter.column_title ?? '',\n contents: [\n {\n numItemsDisplay: '10',\n tablet: true,\n desktop: true,\n mobile: true,\n name: cmsPrefooter.column_title ?? '',\n title: cmsPrefooter.column_title ?? '',\n content: (cmsPrefooter.link ?? []).map((link) => ({\n tablet: true,\n desktop: true,\n mobile: true,\n CTALink: link.href,\n name: link.title,\n })),\n },\n ],\n };\n};\n\nexport { buildPreFooterMiddleData };\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ContentStackPrefooter } from '@/features/contentstack/interface';\nimport type { PreFooterMiddleItem } from '../interface';\nimport { buildPreFooterMiddleData } from './buildPreFooterDataFromCMSData';\n\nconst mergePrefooterBackendWithCMSData = (\n preFooterBackend: PreFooterMiddleItem[],\n preFooterCMSColumns: ContentStackPrefooter['column'] = [],\n isCategoryPage = false\n) => {\n const prefooterColumnNames = preFooterBackend.map(\n (prefooterColumn) => prefooterColumn.contents?.[0].title ?? ''\n );\n\n return preFooterCMSColumns.reduce((columnsToDisplay, cmsColumn, index) => {\n if (isCategoryPage && index === 0) {\n return [...columnsToDisplay, buildPreFooterMiddleData(cmsColumn)];\n }\n if (prefooterColumnNames.includes(cmsColumn.column_title ?? '')) {\n const backendColumn = preFooterBackend.find(\n (columnFromBackend) => columnFromBackend.contents?.[0].title === cmsColumn.column_title\n );\n\n if (backendColumn?.contents?.[0].content?.length) {\n columnsToDisplay.push(backendColumn);\n\n return columnsToDisplay;\n }\n\n columnsToDisplay.push(buildPreFooterMiddleData(cmsColumn));\n\n return columnsToDisplay;\n }\n\n return columnsToDisplay;\n }, []);\n};\n\nexport { mergePrefooterBackendWithCMSData };\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type PreFooterMiddleItem } from '../interface';\n\nconst COLUMNS_TO_UPDATE = ['related models', 'related makes'];\n\nconst updatePrefooterBackendLinks = (\n prefooterData: PreFooterMiddleItem[],\n canonicalPath: string\n) => {\n const result = prefooterData.map((prefooterColumn) => {\n const columnTitle = prefooterColumn.contents?.[0].title ?? '';\n\n if (COLUMNS_TO_UPDATE.includes(columnTitle.trim().toLocaleLowerCase())) {\n const columns = prefooterColumn.contents?.[0].content;\n\n if (!columns || !columns.length || !prefooterColumn.contents) {\n return prefooterColumn;\n }\n\n prefooterColumn = {\n ...prefooterColumn,\n contents: [\n {\n ...prefooterColumn.contents[0],\n content: columns.map((columnItem) => {\n if (columnItem.CTALink.startsWith('/parts')) {\n return columnItem;\n }\n\n return {\n ...columnItem,\n CTALink: `${canonicalPath}${columnItem.CTALink}`,\n };\n }),\n },\n ],\n };\n }\n\n return prefooterColumn;\n });\n\n return result;\n};\n\nexport { updatePrefooterBackendLinks };\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { PageTypeData } from '@/types';\nimport { type ProductData } from '@/features/product';\n\ntype GetPageDependentPrefooterParamsArgs = {\n isPDP: boolean;\n pageTypeData: PageTypeData | undefined;\n productDetails: ProductData | undefined;\n};\n\ntype PageDependentParams = {\n pageType: string | undefined;\n catalogRepositoryId: string | undefined;\n shopByMakeActive: boolean | undefined;\n shopByModelActive: boolean | undefined;\n shopByYearActive: boolean | undefined;\n taxonomyPath: string | undefined;\n filterName: string | undefined;\n vehicleMake: string | undefined;\n vehicleModel: string | undefined;\n vehicleYear: string | undefined;\n};\n\nconst getPageDependentPrefooterParams = ({\n isPDP,\n pageTypeData,\n productDetails,\n}: GetPageDependentPrefooterParamsArgs): PageDependentParams => {\n if (isPDP) {\n return {\n pageType: 'ProductDetails',\n catalogRepositoryId: productDetails?.product?.ecommProductId,\n shopByMakeActive: productDetails?.product?.shopByMakeActive,\n shopByModelActive: productDetails?.product?.shopByModelActive,\n shopByYearActive: productDetails?.product?.shopByYearActive,\n taxonomyPath: productDetails?.product?.taxonomyUrl,\n filterName: productDetails?.product?.partTypeName,\n vehicleMake: undefined,\n vehicleModel: undefined,\n vehicleYear: undefined,\n };\n }\n\n return {\n pageType: pageTypeData?.pageType,\n catalogRepositoryId: pageTypeData?.catalogRepositoryId,\n shopByMakeActive: pageTypeData?.shopByMakeActive,\n shopByModelActive: pageTypeData?.shopByModelActive,\n shopByYearActive: pageTypeData?.shopByYearActive,\n taxonomyPath: pageTypeData?.taxonomyPath,\n filterName: pageTypeData?.catalogRepositoryName,\n vehicleMake: pageTypeData?.make ?? undefined,\n vehicleModel: pageTypeData?.model ?? undefined,\n vehicleYear: pageTypeData?.year ?? undefined,\n };\n};\n\nexport { getPageDependentPrefooterParams };\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { PreFooterData, NewResponse, PreFooterMiddleItem } from '../interface';\nimport { getAxios } from '@/lib/axios';\nimport { requestBaseURL, requestBaseURLGCPExtOrInt } from '@/config/serviceAPI';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\nimport { useRouter } from 'next/router';\nimport { getPathnameFromAsPath, parseUrl } from '@/utils/urlHelpers';\nimport { type AxiosInstance } from 'axios';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { usePageType } from '@/features/category/api/getPageType';\nimport { useCMSCategoryData } from '@/features/category/api/getCMSCategoryData';\nimport { showXMPreviewDate } from '@/utils/showXMPreviewDate';\nimport { mergePrefooterBackendWithCMSData } from '../utils/mergePrefooterBackendWithCMSData';\nimport { updatePrefooterBackendLinks } from '../utils/updatePrefooterBackendLinks';\nimport { getPageDependentPrefooterParams } from '../utils/getPageDependentPrefooterParams';\nimport { useContentStackDefaultPDPContent } from '@/features/pdp/api/getContentStackDefaultProductContent';\nimport { useContentStackPremiumPDPContent } from '@/features/pdp/api/getContentStackPremiumProductContent';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { pageTypes } from '@/constants/page';\nimport { countryCodes } from '@/constants/locale';\nimport { useLocale } from '@/hooks/useLocale';\nimport type { Locale } from '@/types/i18n';\nimport { getCountryFromLocale } from '@/utils/getCountryFromLocale';\nimport { useContentStackPLPData } from '@/features/productListingPage/api/getContentStackProductListingPageData';\n\nconst URL = `${requestBaseURL}/external/product-discovery/seo-data/v1/seo-footer-mappings`;\nconst GCP_URL = `${requestBaseURLGCPExtOrInt}/sls/b2c/product-discovery-seo-data-bs/v2/seo-footer-mappings`;\n\ntype PreFooterQueryOptions = {\n locale: Locale;\n seourl: string;\n vehicleId: string;\n gcpUrlEnabled: boolean;\n filterName?: string;\n pageType?: string;\n catalogRepositoryId?: string;\n taxonomyPath?: string;\n vehicleMake?: string;\n vehicleModel?: string;\n vehicleYear?: string;\n shopByMakeActive?: boolean;\n shopByModelActive?: boolean;\n shopByYearActive?: boolean;\n};\n\nconst { useData: usePreFooterData, prefetch: prefetchPreFooterData } = createQuery<\n PreFooterData,\n PreFooterQueryOptions\n>('preFooterData', async (options, axiosInstance) => {\n if (options.locale === countryCodes.ptBr) return [];\n\n return getPreFooterDataForCMS(options, axiosInstance);\n});\n\nconst getPreFooterDataForCMS = async (\n {\n seourl,\n vehicleId,\n filterName,\n pageType,\n catalogRepositoryId,\n taxonomyPath,\n vehicleMake,\n vehicleModel,\n vehicleYear,\n shopByMakeActive,\n shopByModelActive,\n shopByYearActive,\n locale,\n gcpUrlEnabled,\n }: PreFooterQueryOptions,\n axiosInstance?: AxiosInstance\n) => {\n const params = {\n country: getCountryFromLocale(locale),\n customerType: 'B2C',\n filterName: filterName,\n pageType: pageType === 'ProductShelf' || pageType === 'ProductDetails' ? 'PRODUCT' : 'CATEGORY',\n preview: showXMPreviewDate(),\n seoRepositoryId: catalogRepositoryId,\n seoUrl: taxonomyPath ?? seourl,\n shopByMakeActive,\n shopByModelActive,\n shopByYearActive,\n vehicleMake: vehicleMake,\n vehicleModel: vehicleModel,\n vehicleYear: vehicleYear,\n ...(vehicleId && { vehicleId }),\n };\n const response = await getAxios(axiosInstance).get(gcpUrlEnabled ? GCP_URL : URL, {\n params,\n ...(gcpUrlEnabled && { withCredentials: false }),\n });\n\n return selector(response.data);\n};\n\n// TODO: remove legacy PreFooter types and mapping\nconst selector = (data: NewResponse): PreFooterData => {\n return [\n {\n preFooterMiddle: data.map((item) => {\n return {\n name: item.contentGroupTitle ?? '',\n contents: [\n {\n numItemsDisplay: '10',\n title: item.contentGroupTitle ?? '',\n tablet: true,\n mobile: true,\n desktop: true,\n name: item.contentGroupTitle ?? '',\n content: (item.contentGroupMappings ?? []).map((mapping) => ({\n tablet: true,\n mobile: true,\n desktop: true,\n CTALink: mapping.linkUrl,\n name: mapping.linkLabel,\n })),\n },\n ],\n };\n }),\n contents: [],\n },\n ];\n};\n\ntype PrefooterMiddleDataResult = PreFooterMiddleItem[];\n\ntype PrefooterMiddleDataSelect = (data: PreFooterData) => PrefooterMiddleDataResult;\n\nconst usePreFooterMiddleData = ({ gcpUrlEnabled }: { gcpUrlEnabled: boolean }) => {\n const { asPath, pathname } = useRouter();\n const locale = useLocale();\n const seourl = getPathnameFromAsPath(asPath).replace(/(\\/bn\\/|\\/b\\/).*/, '');\n const vehicleId = usePreferredVehicle()?.catalogVehicleId ?? '0';\n const { data: pageTypeData } = usePageType();\n const isPDP = pathname === '/products/[...slug]';\n const isShelf = pageTypeData?.pageType?.toLowerCase().includes(pageTypes.shelf);\n\n const { data: productDetails, isFetched: areProductDetailsFetched } = useProductDetails({\n enabled: isPDP,\n });\n const { data: plpCMSData, isCSProductListingPageEnabled } = useContentStackPLPData({\n enabled: false,\n });\n\n const { data: catgeoryCMSData, enabled: isCatgeoryCMSEnabled } = useCMSCategoryData();\n\n const taxonomyPath = productDetails?.product?.cmsContentPath ?? '';\n const brandName =\n productDetails?.product?.subBrandName ?? productDetails?.product?.brandName ?? '';\n\n const { data: defaultPDPContent } = useContentStackDefaultPDPContent({\n enabled: isPDP,\n taxonomyPath,\n });\n const premiumBrands: string[] = defaultPDPContent?.premiumBrands?.brands ?? [];\n\n const { data: premiumPDPContent } = useContentStackPremiumPDPContent({\n enabled:\n isPDP &&\n areProductDetailsFetched &&\n premiumBrands.includes(productDetails?.product?.brandName ?? ''),\n taxonomyPath,\n brandName,\n });\n\n const prefooterContentStack = isCatgeoryCMSEnabled\n ? catgeoryCMSData\n : isPDP\n ? premiumPDPContent ?? defaultPDPContent\n : plpCMSData;\n\n const pageDependentParams = getPageDependentPrefooterParams({\n isPDP,\n pageTypeData,\n productDetails,\n });\n\n const isUS = locale === 'en-US';\n const isCMSDisabled =\n !(isCSProductListingPageEnabled && isShelf) && !isPDP && !isCatgeoryCMSEnabled;\n\n return usePreFooterData({\n locale,\n seourl,\n enabled: !isCMSDisabled ? (isPDP ? !!productDetails?.product?.categoryId : true) : isUS,\n vehicleId,\n ...pageDependentParams,\n select: (data) => {\n if (isCMSDisabled) {\n return data[0]?.preFooterMiddle ?? [];\n }\n\n const prefooterColumns = updatePrefooterBackendLinks(\n data[0].preFooterMiddle,\n (isPDP ? productDetails?.product?.seoUrl : pageTypeData?.canonicalPath) ??\n parseUrl(asPath).url\n );\n\n return mergePrefooterBackendWithCMSData(\n prefooterColumns,\n prefooterContentStack?.prefooter?.prefooter?.[0].column,\n isCatgeoryCMSEnabled\n );\n },\n gcpUrlEnabled,\n });\n};\n\nexport { usePreFooterData, usePreFooterMiddleData, prefetchPreFooterData };\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useMemo } from 'react';\nimport { usePreFooterMiddleData } from '../../api/getPreFooterData';\nimport { DesktopLinkColumn } from './DesktopLinkColumn';\nimport { MobileLinkColumn } from './MobileLinkColumn';\nimport styles from './styles.module.scss';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { Grid } from '@/components/Grid';\nimport DeviceWrapper from '@/components/AZCustomComponent/DeviceWrapper';\nimport { useFeatureFlag } from '@/features/globalConfig';\n\nexport function PreFooter() {\n const gcpUrlEnabled = useFeatureFlag('SEO_GCP_URL_ENABLED') === 'true';\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const { data } = usePreFooterMiddleData({ gcpUrlEnabled });\n\n const filteredData = useMemo(() => {\n return (\n data\n ?.filter(\n (content) =>\n typeof content.contents !== 'undefined' &&\n content.contents.length > 0 &&\n content.contents.some((item) => (item?.content?.length ?? -1) > 0)\n )\n .slice(0, 4) ?? []\n );\n }, [data]);\n\n if (!filteredData.length) {\n return null;\n }\n\n return (\n
\n
\n
\n {filteredData.map((column, index) => {\n const contents = column.contents?.[0];\n if (!contents?.content || !contents.content.length) {\n return null;\n }\n return (\n \n \n {isMobile ? (\n
\n \n
\n ) : (\n \n )}\n \n
\n );\n })}\n
\n
\n
\n );\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { type VideoResponseModel } from '@/api/types/products-types';\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { getPreferredVehicle } from '@/features/header/utils/getPreferredVehicle';\nimport { useLocale } from '@/hooks/useLocale';\nimport type { Locale } from '@/types/i18n';\nimport { getAxios } from '@/lib/axios';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { getCountryFromLocale } from '@/utils/getCountryFromLocale';\nimport { type QueryClient } from '@tanstack/react-query';\nimport { type AxiosInstance } from 'axios';\n\ntype Options = {\n productId: string;\n vehicleId?: string;\n videoLocation?: string;\n vehicleYear?: number;\n vehicleModel?: string;\n vehicleMake?: string;\n locale: Locale;\n};\n\nconst selector = (data: VideoResponseModel[]) => data[0] ?? null;\n\nexport const getSylvaniaVideos = async (options: Options, axiosInstance?: AxiosInstance) => {\n const { productId, videoLocation, vehicleId, vehicleYear, vehicleModel, vehicleMake, locale } =\n options;\n const country = getCountryFromLocale(locale);\n const salesChannel = 'ECOMM';\n const customerType = 'B2C';\n\n const URL = `${requestBaseURL}/external/product-discovery/product/v1/products/${productId}/sylvania-videos`;\n\n const params = {\n country,\n salesChannel,\n customerType,\n vehicleId,\n videoLocation,\n vehicleYear,\n vehicleModel,\n vehicleMake,\n };\n\n const response = await getAxios(axiosInstance).get(URL, { params });\n\n return selector(response.data);\n};\n\nconst {\n useData: useSylvaniaVideosData,\n prefetch: prefetchSylvaniaVideosFunc,\n query: getSylvaniaVideosQuery,\n} = createQuery('getSylvaniaVideos', getSylvaniaVideos);\n\nexport const useSylvaniaVideos = ({\n productId,\n videoLocation,\n vehicleYear,\n vehicleModel,\n vehicleMake,\n enabled = true,\n}: {\n productId: string;\n videoLocation?: string;\n vehicleYear?: number;\n vehicleModel?: string;\n vehicleMake?: string;\n enabled?: boolean;\n}) => {\n const headerResult = useHeaderData();\n const vehicleId = getPreferredVehicle(headerResult.data)?.catalogVehicleId;\n const locale = useLocale();\n\n return useSylvaniaVideosData({\n enabled: headerResult.isSuccess && enabled && Boolean(vehicleId) && Boolean(productId),\n productId,\n vehicleId,\n videoLocation,\n vehicleYear,\n vehicleModel,\n vehicleMake,\n locale,\n cacheTime: 0,\n });\n};\n\nexport const getSylvaniaVideosKey = ({\n productId,\n locale,\n vehicleId,\n videoLocation,\n vehicleMake,\n vehicleModel,\n vehicleYear,\n}: Options) =>\n getSylvaniaVideosQuery.getFullKey({\n productId,\n vehicleId,\n videoLocation,\n vehicleYear,\n vehicleModel,\n vehicleMake,\n locale,\n });\n\nexport const prefetchSylvaniaVideos = async (\n axiosInstance: AxiosInstance,\n queryClient: QueryClient,\n options: Options\n) => {\n return prefetchSylvaniaVideosFunc(queryClient, options, axiosInstance);\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport function getProductReviewsURL(pdpURL: string) {\n return pdpURL.replace('/p/', '/p/reviews/');\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ReduxState } from '@/types';\nimport { useSelector } from 'react-redux';\n\ntype UseEagerLoadParams = {\n isEagerLoadDesktop?: boolean;\n isEagerLoadMobile?: boolean;\n isEagerLoadTablet?: boolean;\n};\n\nexport const useEagerLoad = ({\n isEagerLoadDesktop: desktop,\n isEagerLoadMobile: phone,\n isEagerLoadTablet: tablet,\n}: UseEagerLoadParams): boolean => {\n const deviceType = useSelector(({ appData }: ReduxState) => appData.deviceType);\n const cases = {\n desktop,\n phone,\n tablet,\n };\n // @ts-expect-error refine\n return cases[deviceType] || false;\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getImagePaths } from '@/utils/getImagePaths';\nimport { useMediaQuery } from './useMediaQuery';\n\nconst getImage = ({ desktopImage, phoneImage, tabletImage, isDesktop, isPhone, isTablet }: any) => {\n if (isPhone) {\n return phoneImage;\n }\n if (isTablet) {\n return tabletImage;\n }\n if (isDesktop) {\n return desktopImage;\n } else {\n return desktopImage;\n }\n};\n\n/*\n This hook defaults to a desktop image before the media queries are calculated.\n It is recommended to use `getImagePaths` with `` for images that appear\n above the fold and let the browser select the most appropriate size.\n*/\nconst useResponsiveImage = (imagePath: string): string => {\n const imagePaths = getImagePaths(imagePath);\n const isPhone = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n return getImage({ ...imagePaths, isDesktop, isPhone, isTablet });\n};\n\nexport { useResponsiveImage };\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport type {\n ContentStackPdpSlot,\n FormattedContentStackPremiumPDP,\n} from '@/features/contentstack/interface';\n\nexport function hasCMSPremiumTable(\n contentItem:\n | NonNullable[number]\n | NonNullable[number]\n): boolean {\n if ('product_chart' in contentItem && contentItem.product_chart?.product_chart?.[0]) {\n return true;\n }\n\n if ('pdp_slot1' in contentItem && contentItem.pdp_slot1?.pdp_slot1?.[0]?.pdp_slot_content) {\n return contentItem.pdp_slot1.pdp_slot1[0].pdp_slot_content.some(hasCMSPremiumTable);\n }\n\n if ('pdp_slot2' in contentItem && contentItem.pdp_slot2?.pdp_slot2?.[0]?.pdp_slot_content) {\n return contentItem.pdp_slot2.pdp_slot2[0].pdp_slot_content.some(hasCMSPremiumTable);\n }\n\n return false;\n}\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useLocale } from '@/hooks/useLocale';\nimport Head from 'next/head';\n\nexport type ProductDetailMetadataProps = {\n title: string | undefined;\n metaTitle: string | undefined;\n url: string | undefined;\n description: string | undefined;\n image: string | undefined;\n siteName: string | undefined;\n canonicalURL: string | undefined;\n alternateURL: string | undefined;\n hrefLang: string | undefined;\n};\n\nexport function ProductDetailMetadata({\n title,\n metaTitle,\n url,\n description,\n image,\n siteName,\n canonicalURL,\n alternateURL,\n hrefLang,\n}: ProductDetailMetadataProps) {\n const locale = useLocale();\n return (\n \n {title}\n {metaTitle && }\n {url && }\n {description && }\n {image && }\n {siteName && }\n \n {canonicalURL && (\n <>\n \n \n {alternateURL && (\n \n )}\n \n )}\n \n );\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { PageName } from '@/types/analytics';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\n\nexport const trackReadMoreLinkPdp = (readmoreLinkName: PageName) => {\n const data = {\n infoLinkName: readmoreLinkName,\n eventType: 'readMoreInteractionPDP',\n };\n clickTrack(data);\n};\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgFooterDownArrow = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 22,\n height: 12,\n viewBox: \"0 0 22 12\"\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#484848\",\n fillRule: \"evenodd\",\n d: \"M19.212.083 21 1.853 11 11.75 1 1.853 2.788.083 11 8.211z\"\n})));\nexport default SvgFooterDownArrow;","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport { useMediaQuery } from '../../../hooks/useMediaQuery';\nimport Skeleton from '../../Skeleton/Skeleton';\nimport styles from './ProductSpecificationSkeleton.module.scss';\nconst baseSkeletonProps: {\n animation: 'pulse' | 'wave' | false;\n variant: 'text' | 'rect';\n} = {\n animation: 'wave',\n variant: 'rect',\n};\n\nexport default function ProductSpecificationSkeleton() {\n const isMobile = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n return isMobile ? (\n
\n \n {new Array(4).fill(1).map((_, index) => (\n
\n \n\n \n
\n ))}\n
\n ) : (\n
\n \n {new Array(4).fill(1).map((_, index) => (\n
\n \n\n \n
\n ))}\n
\n );\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useMemo } from 'react';\nimport { useMediaQuery } from '../../../hooks/useMediaQuery';\nimport Skeleton from '../../Skeleton/Skeleton';\nimport styles from './ProductDescriptionSkeleton.module.scss';\nconst baseSkeletonProps: {\n animation: 'pulse' | 'wave' | false;\n variant: 'text' | 'rect';\n} = {\n animation: 'wave',\n variant: 'rect',\n};\n\nconst mobileConfig = [\n {\n width: '80%',\n height: 25,\n },\n {\n width: '100%',\n height: 16,\n },\n {\n width: '90%',\n height: 16,\n },\n {\n width: '40%',\n height: 16,\n },\n];\nconst tabletConfig = [\n {\n width: '30%',\n height: 25,\n },\n {\n width: '50%',\n height: 20,\n },\n {\n width: '50%',\n height: 20,\n },\n {\n width: '25%',\n height: 20,\n },\n];\nconst desktopConfig = [\n {\n width: '55%',\n height: 25,\n },\n {\n width: '100%',\n height: 20,\n },\n {\n width: '100%',\n height: 20,\n },\n {\n width: '40%',\n height: 20,\n },\n];\n\nconst getConfig = (isMobile: boolean, isTablet: boolean) => {\n if (isMobile) {\n return mobileConfig;\n } else if (isTablet) {\n return tabletConfig;\n }\n\n return desktopConfig;\n};\n\nexport default function ProductDescriptionSkeleton() {\n const isMobile = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n const config = useMemo(() => getConfig(isMobile, isTablet), [isMobile, isTablet]);\n\n return (\n <>\n
\n
\n {config.map((data, index) => (\n \n ))}\n
\n \n );\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { TableCell } from '@/components/TableCell/TableCell';\nimport { TableRow } from '@/components/TableRow/TableRow';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport cx from 'classnames';\nimport { forwardRef, type ReactNode } from 'react';\nimport styles from './styles.module.scss';\n\nexport type ProductSpecificationRowProps = {\n label: string;\n value: ReactNode;\n labelClassName?: string;\n valueClassName?: string;\n id?: string;\n labelTestId?: string;\n valueTestId?: string;\n compact?: boolean;\n};\n\nexport const ProductSpecificationRow = forwardRef(\n function ProductSpecificationRowComp(\n { label, value, labelClassName, valueClassName, id, labelTestId, valueTestId, compact = false },\n ref\n ) {\n return (\n \n \n {label}\n \n \n {value}\n \n \n );\n }\n);\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { Component, createRef } from 'react';\nimport cx from 'classnames';\nimport { Table } from '../../Table/Table';\nimport { TableCaption } from '../../TableCaption/TableCaption';\nimport { TableBody } from '../../TableBody/TableBody';\nimport Hidden from '../../Hidden';\nimport { Grid } from '../../Grid';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport { useLabels } from '@/hooks/useLabels';\nimport { orangeReadLessArrow, orangeReadMoreArrow } from '../../../constants/images/readMoreLess';\nimport NextImage from '@/components/NextImage';\nimport { trackReadMoreLinkPdp } from '@/utils/analytics/track/trackReadMoreLinkPdp';\nimport ExpansionPanel from '../../AZCustomComponent/ExpansionPanel';\nimport productStyles from '../styles.module.scss';\nimport ExpandIcon from '../../../../public/images/footer/footer_down_arrow.svg';\nimport styles from './styles.module.scss';\nimport ProductSpecificationSkeleton from './ProductSpecificationSkeleton';\nimport ProductDescriptionSkeleton from './ProductDescriptionSkeleton';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { type ProductSkuDetails } from '@/features/product';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { type ProductModel } from '@/api/types/products-types';\nimport dynamic from 'next/dynamic';\nimport ProgressModal from '@/components/AZCustomComponent/ProgressModal';\nimport { useDeviceType } from '@/utils/useDeviceType';\nimport { ProductSpecificationRow } from '../ProductSpecificationRow/ProductSpecificationRow';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\n\nexport type WarrantyModalType = {\n isShown: boolean;\n showModalFrom?: string;\n warrantyType?: string;\n};\n\nconst LazyWarrantyModal = dynamic(\n () => import('../ProductWarranty').then((mod) => mod.WarrantyModal),\n {\n loading: () => ,\n }\n);\n\nexport type ProductDetailSpecificationProps = {\n warrantyModal?: { isShown: boolean; showModalFrom?: string; warrantyType?: string };\n setWarrantyModal?: ({ isShown }: WarrantyModalType) => void;\n closeWarrantyModal?: () => void;\n shouldOpenSpecsPanel?: boolean;\n setShouldOpenSpecsPanel?: (shouldOpenPanel: boolean) => void;\n shouldShowLoadingSkeleton?: boolean;\n};\n\ntype ChildProps = {\n skuDetails: ProductSkuDetails | null | undefined;\n labels: typeof labelMap;\n isBot: boolean;\n product: ProductModel | undefined;\n hasVehicle?: boolean;\n isMobile: boolean;\n} & ProductDetailSpecificationProps;\n\ntype State = {\n seeMore: boolean;\n descMore: boolean;\n};\n\ntype Ref = {\n current: any;\n};\n\nconst mobile = 'mobile';\nconst tablet = 'tablet';\nconst labelMap = {\n label_ProductDisplayPage_body_PartNo: 'label_ProductDisplayPage_body_PartNo',\n lblWeight: 'label_product_display_page_body_Weight',\n lblWarranty: 'label_product_display_page_body_Warranty',\n label_CategoryPage_body_Notes: 'label_CategoryPage_body_Notes',\n hyperlink_CategoryPage_body_ReadMore: 'hyperlink_CategoryPage_body_ReadMore',\n hyperlink_CategoryPage_body_ReadLess: 'hyperlink_CategoryPage_body_ReadLess',\n label_CategoryPage_body_ProductSpecifications: 'label_CategoryPage_body_ProductSpecifications',\n label_CategoryPage_body_ProductDescription: 'label_CategoryPage_body_ProductDescription',\n label_DetailsPage_body_Location: 'label_DetailsPage_body_Location',\n label_DetailsPage_body_ApplicationSmall: 'label_DetailsPage_body_ApplicationSmall',\n lblSkuNumber: 'Label_Sku_Uppercase',\n label_product_bulletins: 'label_product_bulletins',\n label_safety_data_sheets: 'label_safety_data_sheets',\n};\n\nexport const productSpecificationConstant = {\n ProductSpec: 'ProductSpec',\n readmoreLinkName: 'readmoreLinkName',\n};\n\nclass ProductDetailSpecification extends Component {\n constructor(props: ChildProps) {\n super(props);\n this.specificationCall = createRef();\n this.state = {\n seeMore: !props.isBot,\n descMore: true,\n };\n }\n\n specificationCall: Ref;\n showWarrantyModal = () => {\n this.props.setWarrantyModal?.({\n isShown: true,\n showModalFrom: productSpecificationConstant.ProductSpec,\n });\n };\n handleWindowScroll: (device: string) => void = (device) => {\n if (device === mobile) {\n window.scroll({\n top: window.innerHeight + window.innerWidth,\n behavior: 'smooth',\n });\n } else if (device === tablet && window.orientation === 90) {\n window.scroll({\n top: window.outerWidth,\n behavior: 'smooth',\n });\n } else if (device === tablet) {\n window.scroll({\n top: window.innerHeight,\n behavior: 'smooth',\n });\n }\n };\n specReadLess: (element?: any) => any | void = (element) => {\n if (element) {\n return element.getBoundingClientRect().y;\n }\n };\n examplePart = () => {\n if (this.state.seeMore) {\n this.setState({\n seeMore: false,\n });\n } else {\n this.setState({\n seeMore: true,\n });\n const client = this.specReadLess();\n\n if (client !== 0) {\n const scrollable = this.specificationCall?.current ?? {};\n scrollable.scrollIntoView({\n behavior: 'smooth',\n });\n } else {\n this.handleWindowScroll(window.certona.device);\n }\n }\n };\n\n partNumberDisplay = () => {\n const { labels } = this.props;\n\n if (this.props.product?.itemWeight) {\n return (\n \n );\n }\n };\n\n skuNumberDisplay = () => {\n const skuId = this.props.product?.itemId;\n const { labels } = this.props;\n\n if (skuId) {\n return (\n \n );\n }\n };\n\n weightDisplay = () => {\n const weight = this.props.product?.itemWeight;\n const { labels } = this.props;\n\n if (weight) {\n return (\n \n );\n }\n };\n\n locationDisplay = () => {\n const pdpDetails = this.props.product;\n const { labels } = this.props;\n\n if (pdpDetails?.location) {\n return (\n \n );\n }\n };\n\n applicationDisplay = () => {\n const productDetails = this.props.product;\n const { labels } = this.props; // shortcircuit if for some reason cannot retreieve pdpInfo\n if (productDetails?.applicationNotes) {\n const applicationCount = productDetails.applicationNotes.length;\n return (\n (\n

\n {`${applicationCount > 1 ? i + 1 + '. - ' + applicationItem : applicationItem}`}\n

\n ))}\n labelTestId=\"details-application\"\n valueTestId=\"details-application-value\"\n compact\n />\n );\n }\n\n return null;\n };\n\n renderProdSpec = (more: boolean, specsCount: number) => {\n const productSpecification = this.props.product?.productAttributes ?? [];\n const techNote = this.props.product?.techNote;\n const quickNotes = this.props.product?.quickNote;\n const finalNotes = [quickNotes, techNote].filter(Boolean).join(', ');\n const { labels } = this.props;\n\n const warrantyDisplay =\n this.props.skuDetails?.warranty ?? '' ? (\n \n {this.props.skuDetails?.warranty ?? ''}\n \n }\n labelTestId=\"table-cell-warranty\"\n compact\n />\n ) : null;\n\n const techNotesDisplay =\n finalNotes && this.props.hasVehicle ? (\n \n ) : null;\n\n const productSpecificationDisplay = productSpecification.map((item, index) => {\n const productSpecList = (\n \n );\n\n if (more && index > 5) {\n return null;\n }\n\n return productSpecList;\n });\n let fullProductSpecificationList = productSpecificationDisplay;\n const productServiceBulletin = this.props.product?.itemPsbUrls ?? [];\n const msds = this.props.product?.itemMsdsUrl ?? null;\n\n if (productServiceBulletin.length > 0 || msds) {\n const psbRows = (\n \n {productServiceBulletin.length > 0 &&\n productServiceBulletin.map((item) => (\n
\n \n {item.title}\n \n
\n ))}\n {msds && (\n
\n \n {labels.label_safety_data_sheets}\n \n
\n )}\n \n }\n />\n );\n fullProductSpecificationList = productSpecificationDisplay.concat(psbRows);\n }\n\n return (\n
\n
\n \n {!this.props.isMobile && (\n \n \n {labels.label_CategoryPage_body_ProductSpecifications}\n \n \n )}\n \n {warrantyDisplay}\n {this.partNumberDisplay()}\n {this.skuNumberDisplay()}\n {this.weightDisplay()}\n {this.locationDisplay()}\n {this.applicationDisplay()}\n {techNotesDisplay}\n {fullProductSpecificationList}\n \n
\n
\n
\n {specsCount > 6 && (\n <>\n {this.renderProdDescReadMore(labels)}\n {this.renderProdDescReadLess(labels)}\n \n )}\n
\n
\n );\n };\n\n renderProdDesc = () => {\n const desc = this.props.product?.marketingCopy ?? '';\n const featureAttributes = this.props.product?.featuresAndBenefits ?? [];\n let featureAttributesArr = null;\n\n if (featureAttributes?.length > 0) {\n featureAttributesArr = featureAttributes.map((featureAttribute: string) => (\n \n \n \n \n
{featureAttribute}
\n \n ));\n }\n\n return (\n
\n ({\n __html: desc,\n }))()}\n />\n
    {featureAttributesArr}
\n
\n );\n };\n renderProdDescReadMore = (labels: typeof labelMap) => {\n let readMoreLbl: React.ReactNode;\n\n if (this.state.seeMore) {\n readMoreLbl = (\n \n {labels.hyperlink_CategoryPage_body_ReadMore}\n \n
\n \n
\n
\n \n );\n }\n\n return {readMoreLbl};\n };\n renderProdDescReadLess = (labels: typeof labelMap) => {\n let readLessLbl: React.ReactNode;\n\n if (!this.state.seeMore) {\n trackReadMoreLinkPdp('productSpecifications');\n readLessLbl = (\n \n \n
\n \n
\n
\n {labels.hyperlink_CategoryPage_body_ReadLess}\n \n );\n }\n\n return {readLessLbl};\n };\n\n renderWarrantyModal = () => {\n const pdpDetails =\n this.props.product?.lineCode &&\n this.props.product?.partNumber &&\n this.props.product?.itemWeight;\n\n const { warrantyModal, skuDetails } = this.props;\n let pdpDetailsComp = null;\n const warrantyType = skuDetails?.warrantyType ?? this.props.product?.warrantyType ?? '';\n const closeWarrantyModal = () => {\n this.props.setWarrantyModal?.({ isShown: false });\n };\n\n if (pdpDetails && warrantyModal?.isShown && warrantyType) {\n pdpDetailsComp = (\n \n );\n }\n\n return pdpDetailsComp;\n };\n\n descriptionMoreOrLess = (labels: typeof labelMap) => {\n return (\n <>\n \n {labels.label_CategoryPage_body_ProductDescription}\n \n\n
\n
{this.renderProdDesc()}
\n
\n \n );\n };\n\n descriptionMoreOrLessTablet = (labels: typeof labelMap, prodDesc: any) => {\n const readMoreButton = (\n this.setState({ descMore: false })}\n data-testid=\"description-expand\"\n >\n {labels.hyperlink_CategoryPage_body_ReadMore}\n
\n \n
\n \n );\n const readLessButton = (\n this.setState({ descMore: true })}\n data-testid=\"description-expand\"\n >\n
\n \n
\n {labels.hyperlink_CategoryPage_body_ReadLess}\n \n );\n return (\n <>\n \n {labels.label_CategoryPage_body_ProductDescription}\n \n {\n \n {this.renderProdDesc()}\n
\n }\n \n {prodDesc && this.state.descMore ? readMoreButton : readLessButton}\n \n \n );\n };\n\n descriptionMoreOrLessMobile = (labels: typeof labelMap) => {\n return (\n \n {labels.label_CategoryPage_body_ProductDescription}\n \n }\n content={
{this.renderProdDesc()}
}\n classes={{\n summary: productStyles.expansionPanelSummary,\n detailsRoot: productStyles.expansionPanelDetails,\n }}\n defaultExpandedProp={this.props.isBot}\n expandIcon={}\n />\n );\n };\n\n renderSpecifications = () => {\n const { labels } = this.props;\n const prodDesc = this.props.product?.marketingCopy ?? '';\n return (\n <>\n \n {this.descriptionMoreOrLess(labels)}\n \n \n {this.descriptionMoreOrLessMobile(labels)}\n \n \n {this.descriptionMoreOrLessTablet(labels, prodDesc)}\n \n \n );\n };\n\n render() {\n const { isBot, labels } = this.props;\n const productSpecification = this.props.product?.productAttributes ?? [];\n return (\n
\n {this.renderWarrantyModal()}\n
\n \n \n {this.props.shouldShowLoadingSkeleton ? (\n \n ) : (\n \n \n \n {labels.label_CategoryPage_body_ProductSpecifications}\n \n }\n content={this.renderProdSpec(this.state.seeMore, productSpecification.length)}\n classes={{\n summary: productStyles.expansionPanelSummary,\n detailsRoot: productStyles.expansionPanelDetails,\n }}\n defaultExpandedProp={isBot}\n overrideExpanded={this.props.shouldOpenSpecsPanel || isBot}\n onChange={this.props.setShouldOpenSpecsPanel}\n expandIcon={}\n />\n \n \n {this.renderProdSpec(this.state.seeMore, productSpecification.length)}\n \n
\n )}\n \n \n {this.props.shouldShowLoadingSkeleton ? (\n \n ) : (\n this.renderSpecifications()\n )}\n \n \n
\n \n );\n }\n}\n\nconst WrappedProductDetailSpecification = (props: ProductDetailSpecificationProps) => {\n const { data: productDetails, status: productsStatus } = useProductDetails();\n const skuDetailsResult = useProductSkuDetails({\n skuIds:\n productsStatus === 'success' && productDetails.product?.itemId\n ? [productDetails.product.itemId]\n : null,\n });\n const skuDetails = skuDetailsResult.isSuccess ? skuDetailsResult.data[0] : null;\n const labels = useLabels(labelMap);\n const { data: headerData } = useHeaderData();\n const hasVehicle = headerData?.vehicleMap?.vehicleId !== '';\n const isBot = useDeviceType() === 'bot';\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n\n return (\n \n );\n};\n\nexport default WrappedProductDetailSpecification;\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { fetchOrderDetails } from '@/actions/details';\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport { HEADER_PRIMARY_KEY } from '@/features/header/api/getHeader';\nimport { useDispatch } from '@/hooks/redux/useDispatch';\nimport { getAxios } from '@/lib/axios';\nimport { useMutation, useQueryClient } from '@tanstack/react-query';\nimport { type AxiosInstance } from 'axios';\nimport {\n type AddAffinityItemsToCartParams,\n type AddAffinityItemsToCartResponse,\n type AddAffinityItemsToCartVariables,\n type AffinityItemToAddToCart,\n type MappedAffinityProduct,\n} from '../interface';\nimport root from 'window-or-global';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { FULFILLMENT_METHODS } from '@/constants/fulfillmentConstants';\n\nconst pdpFulfillmentTypeMap: Record = {\n STOREORDER: '108',\n ONLINEORDER: '101',\n};\n\nconst URL = `${requestBaseURL}/ecomm/b2c/order/v4/items`;\n\nconst getMainItemFulfillmentOrGroupId = (\n selectedAndAvailableParts: MappedAffinityProduct[],\n fulfillmentId: number,\n fulfillmentInSTHGroup: boolean\n) => {\n const useSelectedFulfillmentId = selectedAndAvailableParts\n .slice(1)\n .every((selectedPart) => selectedPart?.availableFulfillmentIds?.includes(fulfillmentId));\n const useSTHFulfillmentGroup = selectedAndAvailableParts\n .slice(1)\n .every((selectedPart) =>\n selectedPart?.availableFulfillmentIds?.includes(FULFILLMENT_METHODS.ONLINEORDER)\n );\n\n const mainFulfillmentId = useSelectedFulfillmentId\n ? fulfillmentId\n : useSTHFulfillmentGroup && fulfillmentInSTHGroup\n ? FULFILLMENT_METHODS.ONLINEORDER\n : undefined;\n\n return mainFulfillmentId;\n};\n\nconst getCommonFulfillmentId = (selectedAndAvailableParts: MappedAffinityProduct[]) => {\n const fulfillmentMethodsArray = Object.entries(FULFILLMENT_METHODS);\n const commonFulfillmentId = fulfillmentMethodsArray.find((fulfillmentMethod) => {\n selectedAndAvailableParts\n .slice(1)\n .every((selectedPart) =>\n selectedPart?.availableFulfillmentIds?.includes(Number(fulfillmentMethod[1]))\n );\n });\n\n return commonFulfillmentId?.[1];\n};\n\nconst postAddAffinityItemToCart = async (\n variables: AddAffinityItemsToCartVariables,\n isMxSite: boolean,\n axiosInstance?: AxiosInstance\n) => {\n const { selectedAndAvailableParts, storeNumber, catalogVehicleId, fulfillmentId = 0 } = variables;\n const fulfillmentInSTHGroup =\n fulfillmentId === FULFILLMENT_METHODS.NEXTDAY ||\n fulfillmentId === FULFILLMENT_METHODS.SAMEDAY ||\n fulfillmentId === FULFILLMENT_METHODS.ONLINEORDER;\n const mainItemFulfillmentOrGroupId = getMainItemFulfillmentOrGroupId(\n selectedAndAvailableParts,\n fulfillmentId,\n fulfillmentInSTHGroup\n );\n const commonFulfillmentId = getCommonFulfillmentId(selectedAndAvailableParts);\n const mainAndAffinityItemsFulfillmentId = mainItemFulfillmentOrGroupId ?? commonFulfillmentId;\n\n const itemsList: AffinityItemToAddToCart[] = selectedAndAvailableParts.map(\n ({ skuId, productId, isMainItem, availableFulfillmentIds }) => {\n const partHasMainFulfillmentId = availableFulfillmentIds?.includes(fulfillmentId);\n const partShouldUseSTHGroup =\n fulfillmentInSTHGroup && availableFulfillmentIds?.includes(FULFILLMENT_METHODS.ONLINEORDER);\n return {\n fulfillmentTypeId: isMxSite\n ? `${FULFILLMENT_METHODS.STOREORDER}`\n : mainAndAffinityItemsFulfillmentId && !isMainItem\n ? `${mainAndAffinityItemsFulfillmentId}`\n : partHasMainFulfillmentId || isMainItem\n ? `${fulfillmentId}`\n : partShouldUseSTHGroup\n ? `${FULFILLMENT_METHODS.ONLINEORDER}`\n : `${availableFulfillmentIds[0]}`,\n quantity: '1',\n skuId,\n productId,\n storeNumber,\n vehicleId: catalogVehicleId,\n };\n }\n );\n\n const params: AddAffinityItemsToCartParams = { itemsList };\n\n await getAxios(axiosInstance).post(URL, params);\n};\n\nexport const useAddAffinityItemsToCartMutation = ({\n onSuccess,\n}: { onSuccess?: () => void } = {}) => {\n const dispatch = useDispatch();\n const queryClient = useQueryClient();\n const locale = useLocale();\n const isMxSite = locale === countryCodes.mx;\n\n return useMutation({\n mutationFn: async (variables: AddAffinityItemsToCartVariables) =>\n postAddAffinityItemToCart(variables, isMxSite),\n onSuccess: async (_, variables) => {\n const { selectedAndAvailableParts, allPartsAmount, shippingType } = variables;\n\n dispatch(fetchOrderDetails(undefined, queryClient));\n await queryClient.invalidateQueries([HEADER_PRIMARY_KEY]);\n\n const { pageName = '', siteSection = '' } = root.utag_data as Record<\n string,\n string | undefined\n >;\n\n const productFindingMethodList: string[] = [];\n const productIdList: string[] = [];\n const productPriceList: number[] = [];\n const originalPartTypeIdList: string[] = [];\n const productFulfillmentTypeList: string[] = [];\n const productRepositoryIdList: string[] = [];\n\n selectedAndAvailableParts.forEach((part) => {\n // If totalPrice is null, the price is unavailable and we should not track it\n if (part.skuId && part.totalPrice !== null) {\n originalPartTypeIdList.push(part.originalPartTypeId);\n productFulfillmentTypeList.push(\n part.isMainItem\n ? pdpFulfillmentTypeMap[shippingType]\n : pdpFulfillmentTypeMap.ONLINEORDER\n );\n productFindingMethodList.push(part.isMainItem ? 'Affinity Leading Item' : 'Affinity');\n productIdList.push(part.skuId);\n productPriceList.push(part.totalPrice);\n productRepositoryIdList.push(part.productId);\n }\n });\n\n clickTrack({\n eventType: 'addToCart',\n productFulfillmentTypeList,\n productIdList,\n productPriceList,\n productFindingMethod: productFindingMethodList,\n productRecommendationTypeList: productFindingMethodList,\n originalPartTypeIdList,\n pfmLocation: 'Affinity: catalog_product-detail',\n customLinkName: `Affinity Cart Addition: ${selectedAndAvailableParts.length} of ${allPartsAmount}`,\n pageName,\n siteSection,\n productRepositoryIdList,\n pageType: 'catalog_product-detail',\n });\n\n if (onSuccess) {\n onSuccess();\n }\n },\n });\n};\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport NextImage from '@/components/NextImage';\nimport { sessionStorage } from '@/utils/sessionStorage';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport type { MappedAffinityProduct } from '../../../../interface';\nimport styles from './RelatedPartsPictureList.module.scss';\nimport { View } from '@az/starc-ui';\n\ntype Props = {\n parts: MappedAffinityProduct[];\n};\n\nconst plusSignBlack = {\n src: '/images/plus-sign-black.svg',\n alt: 'plus-sign',\n};\n\nexport function RelatedPartsPictureList({ parts }: Props) {\n const handleImageClick = () => {\n sessionStorage.setItem('pdpUtagViewAffinity', 'true');\n };\n\n return (\n
\n {parts.map(\n ({ seoUrl, productImageUrl, isPartSelected, productName, skuId, isAvailable }, index) => (\n
\n \n \n \n \n \n\n {index === parts.length - 1 ? null : (\n
\n \n
\n )}\n
\n )\n )}\n
\n );\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useLabels } from '@/hooks/useLabels';\nimport { sessionStorage } from '@/utils/sessionStorage';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport type { MappedAffinityProduct } from '../../../../interface';\nimport styles from './RelatedPartCheckboxName.module.scss';\nimport { Checkbox, Text } from '@az/starc-ui';\n\ntype Props = {\n part: MappedAffinityProduct;\n isCurrentPDPPart: boolean;\n handleSelect: (skuId: string | null) => void;\n};\n\nconst labelMap = {\n currentlyViewing: 'label_ProductDisplayPage_body_CurrentlyViewing',\n priceNotAvailable: 'label_shelf_resultsList_price_not_available',\n};\n\nexport function RelatedPartCheckboxName({\n part: { skuId, productName, isPartSelected, totalPrice, isAvailable, seoUrl = '' },\n isCurrentPDPPart,\n handleSelect,\n}: Props) {\n const { currentlyViewing, priceNotAvailable } = useLabels(labelMap);\n\n const handleChange = () => {\n if (isAvailable) {\n handleSelect(skuId);\n }\n };\n\n const handleUrlClick = () => {\n sessionStorage.setItem('pdpUtagViewAffinity', 'true');\n };\n\n const price = totalPrice === null ? priceNotAvailable : `$${totalPrice.toFixed(2)}`;\n\n return (\n \n \n {isCurrentPDPPart ? (\n <>\n {`${currentlyViewing}: `}\n {productName}\n \n ) : (\n \n {productName}\n \n )}\n \n \n {price}\n \n \n }\n />\n );\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport { RelatedPartCheckboxName } from './RelatedPartCheckboxName';\nimport type { MappedAffinityProduct } from '../../../../interface';\nimport styles from './RelatedPartsCheckboxNameList.module.scss';\n\ntype Props = {\n parts: MappedAffinityProduct[];\n handleSelect: (skuId: string | null) => void;\n};\n\nconst RelatedPartsCheckboxNameList = ({ parts, handleSelect }: Props) => {\n return (\n \n {parts.map((part, index) => (\n \n ))}\n \n );\n};\n\nexport { RelatedPartsCheckboxNameList };\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useState, useEffect, useRef } from 'react';\nimport { useRouter } from 'next/router';\nimport { useLabels } from '@/hooks/useLabels';\nimport CartButton, { type CartButtonRef } from '@/components/AZCustomComponent/CartButton';\nimport { type useAddAffinityItemsToCartMutation } from '../../../../api/postAddAffinityItemsToCart';\nimport styles from './AddToCartButtonSection.module.scss';\n\ntype Props = {\n amountOfSelectedItems: number;\n itemsTotalPrice: number;\n onClick: () => void;\n addAffinityToCartStatus: ReturnType['status'];\n};\n\nconst labelMap = {\n lblAssortmentTotal: 'label_ProductDisplayPage_body_AssortmentTotal',\n lblItems: 'label_checkout_shipping_Items',\n lblItem: 'label_checkout_shipping_Item',\n lblAdd: 'label_ProductDisplayPage_body_Add',\n lblToCart: 'label_ProductDisplayPage_body_ToCart',\n lblGoToCart: 'label_CategoryPage_body_GoToCart',\n};\n\nexport function AddToCartButtonSection({\n amountOfSelectedItems,\n itemsTotalPrice,\n onClick,\n addAffinityToCartStatus,\n}: Props) {\n const labels = useLabels(labelMap);\n const router = useRouter();\n const cartButtonRef = useRef(null);\n const [isLoadingState, setIsLoadingState] = useState(false);\n const [addToCartButtonClicked, setAddToCartButtonClicked] = useState(false);\n const [isAddToCartSuccess, setIsAddToCartSuccess] = useState(false);\n\n useEffect(() => {\n if (addAffinityToCartStatus === 'loading') {\n setAddToCartButtonClicked(true);\n setIsAddToCartSuccess(false);\n setIsLoadingState(true);\n } else if (addAffinityToCartStatus === 'success') {\n setIsLoadingState(false);\n setAddToCartButtonClicked(false);\n cartButtonRef.current?.onSuccessfulAdd();\n setIsAddToCartSuccess(true);\n } else {\n setAddToCartButtonClicked(false);\n setIsLoadingState(false);\n setIsAddToCartSuccess(false);\n }\n }, [addAffinityToCartStatus]);\n\n const addToCartButtonText = `${labels.lblAdd} (${amountOfSelectedItems} ${\n amountOfSelectedItems > 1 ? labels.lblItems : labels.lblItem\n }) ${labels.lblToCart}`;\n\n const navigateToCart = () => {\n void router.push('/cart');\n };\n const onAddToCartClick = () => {\n if (!addToCartButtonClicked) {\n setAddToCartButtonClicked(true);\n onClick();\n }\n };\n return (\n
\n
\n {`${labels.lblAssortmentTotal}:`}\n {`$${itemsTotalPrice.toFixed(2)}`}\n {`(${amountOfSelectedItems} ${\n amountOfSelectedItems > 1 ? labels.lblItems : labels.lblItem\n })`}\n
\n \n {isAddToCartSuccess ? labels.lblGoToCart : addToCartButtonText}\n \n
\n );\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { isAxiosError } from './isAxiosError';\n\nexport function getErrorDetails(error: unknown): T | undefined {\n if (isAxiosError(error)) {\n return error.response?.data.errorDetails;\n }\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport { useLabel, useLabels } from '@/hooks/useLabels';\nimport ContentContainer from '@/components/AZCustomComponent/ContentContainer';\nimport styles from '../styles.module.scss';\nimport { getErrorDetails, getErrorMessage } from '@/utils/errorsHandling';\n\ntype Props = {\n error?: unknown;\n onClick: () => void;\n};\n\nconst labelMap = {\n label_items: 'label_ProductDisplayPage_body_Items',\n};\n\nexport function AffinityErrorNotification({ error, onClick }: Props) {\n const labels = useLabels(labelMap);\n\n const amountOfUnavailableItems =\n getErrorDetails>>(error)?.length ?? 0;\n return (\n
\n \n
\n
\n \n
\n
{`${amountOfUnavailableItems} ${\n labels.label_items\n } ${useLabel(getErrorMessage(error) ?? '')}`}
\n
\n {useLabel(\n getErrorDetails>>(error)?.at(0)?.errorMessageKey ??\n ''\n )}\n
\n
\n
\n \n
\n
\n
\n );\n}\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useState, useEffect, useRef } from 'react';\nimport { Label } from '@/features/i18n';\nimport { useLabels } from '@/hooks/useLabels';\nimport { infoIcon } from '@/constants/images';\nimport Hidden from '@/components/Hidden';\nimport { Headline } from '@/components/Headline/Headline';\nimport NotificationBlock from '@/components/AZCustomComponent/NotificationBlock';\nimport type { AffinityRelatedProductWithPricing } from '@/types';\nimport NextImage from '@/components/NextImage';\nimport styles from './styles.module.scss';\nimport { RelatedPartsPictureList } from './components/RelatedPartsPictureList';\nimport { RelatedPartsCheckboxNameList } from './components/RelatedPartsCheckboxNameList';\nimport { AddToCartButtonSection } from './components/AddToCartButtonSection';\nimport { AffinityErrorNotification } from './components/AffinityErrorNotification';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { type useAddAffinityItemsToCartMutation } from '../../api/postAddAffinityItemsToCart';\nimport { getErrorDetails, getErrorMessage } from '@/utils/errorsHandling';\nimport type { MappedAffinityProduct } from '../../interface';\nimport { View } from '@az/starc-ui';\n\ntype Props = {\n affinityRelatedProducts: AffinityRelatedProductWithPricing[];\n addAffinityItemsToCartMutation: ReturnType;\n shippingType: string;\n fulfillmentId: number;\n};\n\nexport type AddToCartItem = {\n skuId: string;\n productId: string;\n quantity: string;\n fulfillmentTypeId: string;\n vehicleId: string;\n storeNumber: string | undefined;\n};\n\nconst labelMap = {\n lblCompleteTheJob: 'label_ProductDisplayPage_body_CompleteTheJob',\n lblProductQuantityText: 'label_ProductDisplayPage_body_ProductQuantityText',\n lblFeatureNotAvailable: 'label_FeatureNotAvailable',\n};\n\nexport const AffinityRelatedProductsBlock = ({\n affinityRelatedProducts,\n shippingType,\n addAffinityItemsToCartMutation,\n fulfillmentId,\n}: Props) => {\n const labels = useLabels(labelMap);\n const {\n mutate: addToCartMutation,\n status: addAffinityToCartStatus,\n error: addAffinityToCartError,\n } = addAffinityItemsToCartMutation;\n const productDetailsQuery = useProductDetails();\n const productDetails = productDetailsQuery.isSuccess ? productDetailsQuery.data : null;\n const skuDetailsResult = useProductSkuDetails({\n skuIds:\n productDetailsQuery.isSuccess && productDetails?.product?.itemId\n ? [productDetails.product.itemId]\n : null,\n });\n const skuDetails = skuDetailsResult.isSuccess ? skuDetailsResult.data[0] : null;\n const { data: headerData } = useHeaderData();\n const storeNumber = headerData?.storeNumber;\n const catalogVehicleId = headerData?.vehicleMap.catalogVehicleId;\n const [parts, setParts] = useState([]);\n const [hasError, setHasError] = useState(false);\n\n useEffect(() => {\n if (!parts.length) {\n const mappedAffinityRelatedProducts: MappedAffinityProduct[] =\n productDetails && skuDetails\n ? [\n // Current PDP item:\n {\n availableFulfillmentIds: skuDetails.fulfillmentOptions.map(\n (fulfillmentOption) => fulfillmentOption.groupId\n ),\n totalPrice: skuDetails.skuPricingAndAvailability.retailPrice ?? null,\n isPartSelected: !skuDetails.itemPresentInCart,\n isAvailable:\n skuDetails.fulfillmentOptions.some((option) => option.available) &&\n // Check that price is not null or 0\n Boolean(skuDetails.skuPricingAndAvailability.retailPrice),\n productImageUrl: productDetails.product?.itemImageUrl ?? '',\n productName: productDetails.product?.itemDescription ?? '',\n skuId: productDetails.product?.itemId ?? '',\n productId: productDetails.product?.ecommProductId ?? '',\n isMainItem: true,\n originalPartTypeId: productDetails.product?.originalPartTypeId ?? '',\n },\n // Affinity items:\n ...affinityRelatedProducts.map(\n ({\n availableFulfillmentIds,\n totalPrice,\n productImageUrl,\n productName,\n skuId,\n seoUrl,\n productId,\n originalPartTypeId,\n }) => ({\n availableFulfillmentIds,\n totalPrice,\n productImageUrl,\n productName,\n skuId,\n seoUrl,\n productId,\n isAvailable: totalPrice !== null,\n isPartSelected: true,\n isMainItem: false,\n originalPartTypeId,\n })\n ),\n ]\n : [];\n setParts(mappedAffinityRelatedProducts);\n }\n }, [skuDetails, productDetails, affinityRelatedProducts, parts.length]);\n\n useEffect(() => {\n if (addAffinityToCartStatus === 'error') {\n setHasError(true);\n const unavailableSkus = getErrorDetails>>(\n addAffinityToCartError\n )?.map((part) => part.errorCodeDescription);\n setParts((prevParts) =>\n prevParts.map((part) => {\n if (part.skuId && unavailableSkus?.includes(part.skuId)) {\n part.isPartSelected = false;\n part.isAvailable = false;\n }\n\n return part;\n })\n );\n } else {\n setHasError(false);\n }\n }, [addAffinityToCartStatus, addAffinityToCartError]);\n\n const isPDPItemAlreadyInCart = useRef(false);\n\n useEffect(() => {\n // skuDetails will return itemPresentInCart just for the main pdp item\n if (!isPDPItemAlreadyInCart.current && skuDetails?.itemPresentInCart) {\n setParts((prevParts) =>\n prevParts.map((part) => {\n if (part.isMainItem) {\n part.isPartSelected = false;\n isPDPItemAlreadyInCart.current = true;\n }\n\n return part;\n })\n );\n }\n }, [parts, skuDetails?.itemPresentInCart]);\n\n const { amountOfSelectedItems, itemsTotalPrice } = parts.reduce(\n (acc, { isPartSelected, isAvailable, totalPrice }) => ({\n itemsTotalPrice:\n acc.itemsTotalPrice +\n (isAvailable && isPartSelected && totalPrice !== null ? totalPrice : 0),\n amountOfSelectedItems: acc.amountOfSelectedItems + (isAvailable && isPartSelected ? 1 : 0),\n }),\n {\n itemsTotalPrice: 0,\n amountOfSelectedItems: 0,\n }\n );\n\n const handleSelect = (skuId: string | null) => {\n setParts((prevParts) =>\n prevParts.map((part) => {\n if (part.skuId === skuId && part.isAvailable) {\n return { ...part, isPartSelected: !part.isPartSelected };\n }\n\n return part;\n })\n );\n };\n\n const handleAddToCart = () => {\n const selectedAndAvailableParts = parts.filter(\n ({ isPartSelected, isAvailable }) => isAvailable && isPartSelected\n );\n\n addToCartMutation({\n selectedAndAvailableParts,\n allPartsAmount: parts.length,\n storeNumber,\n catalogVehicleId,\n shippingType,\n fulfillmentId,\n });\n };\n\n const handleCloseErrorNotification = () => {\n setHasError(false);\n };\n\n return parts.length ? (\n
\n
\n \n \n {labels.lblCompleteTheJob}\n \n \n
\n {hasError ? (\n getErrorDetails>>(addAffinityToCartError)?.length &&\n getErrorMessage(addAffinityToCartError) ? (\n \n ) : (\n \n }\n />\n )\n ) : null}\n
\n
\n \n \n \n \n
\n
\n
\n \n
\n {labels.lblProductQuantityText}\n
\n \n \n \n \n
\n
\n ) : null;\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { Card, Checkbox, Text, View } from '@az/starc-ui';\nimport { type MappedAffinityProduct } from '../../interface';\nimport { useLabels } from '@/hooks/useLabels';\nimport styles from './styles.module.scss';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport NextImage from '@/components/NextImage';\n\nexport type RelatedPartProduct = {\n isPartSelected: boolean;\n isAvailable: boolean;\n} & MappedAffinityProduct;\n\ntype Props = {\n isMobile: boolean;\n product: RelatedPartProduct;\n onChange: (event: { value?: string }) => void;\n};\n\nconst labelMap = {\n currentlyViewing: 'label_ProductDisplayPage_body_CurrentlyViewing',\n priceNotAvailable: 'label_shelf_resultsList_price_not_available',\n};\n\nexport const RelatedPartCard = ({ product, onChange, isMobile }: Props) => {\n const { currentlyViewing, priceNotAvailable } = useLabels(labelMap);\n\n const price = product.totalPrice?.toFixed(2)\n ? `$${product.totalPrice?.toFixed(2)}`\n : priceNotAvailable;\n return (\n \n \n \n \n \n onChange({ value: event.target.value })}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {product.isMainItem ? (\n \n \n \n {currentlyViewing}\n \n \n \n ) : null}\n \n \n {product.productName}\n \n \n \n \n {price}\n \n \n \n \n \n \n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useLabel } from '@/hooks/useLabels';\nimport { View, Text } from '@az/starc-ui';\nimport styles from './styles.module.scss';\n\nexport const CompleteTheJobDescription = () => {\n const label = useLabel('label_affinity_the_following_products');\n return (\n \n \n \n {label}\n \n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { View, Actionable, Text, Icon, ChevronDown } from '@az/starc-ui';\nimport styles from './styles.module.scss';\nimport { useLabels } from '@/hooks/useLabels';\nimport cx from 'classnames';\n\nconst labelMap = {\n lblSeeAll: 'label_topnav_seeall',\n lblSeeLess: 'hyperlink_label_shelf_See_Less',\n lblParts: 'label_ContactUs_header_Parts',\n};\n\nexport const ShowAllItemsBtn = ({\n expanded,\n onClick,\n numParts,\n}: {\n expanded: boolean;\n onClick: () => void;\n numParts: number;\n}) => {\n const labels = useLabels(labelMap);\n return (\n \n \n \n \n {expanded ? labels.lblSeeLess : `${labels.lblSeeAll} ${numParts} ${labels.lblParts}`}\n \n \n \n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useState, useRef, useEffect } from 'react';\nimport { Label } from '@/features/i18n';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useAddAffinityItemsToCartMutation } from '../../api/postAddAffinityItemsToCart';\nimport { useAffinityRelatedProducts } from '../../api/getAffinityRelatedProducts';\nimport { View, Text, Card, InfoCircle, Icon, Hidden, CheckmarkCircle, Loader } from '@az/starc-ui';\nimport styles from './styles.module.scss';\nimport CartButton, {\n type CartButtonRef,\n SUCCESS_ANIMATION_DURATION,\n} from '@/components/AZCustomComponent/CartButton';\nimport { useRouter } from 'next/router';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { RelatedPartCard, type RelatedPartProduct } from '../RelatedPartCard';\nimport { CompleteTheJobDescription } from '../CompleteTheJobDescription';\nimport { ShowAllItemsBtn } from '../ShowAllItemsBtn';\nimport NotificationBlock from '@/components/AZCustomComponent/NotificationBlock';\nimport { getErrorMessage } from '@/utils/errorsHandling';\n\nconst labelMap = {\n lblCompleteTheJob: 'label_ProductDisplayPage_body_CompleteTheJob',\n lblProductQuantityText: 'label_ProductDisplayPage_body_ProductQuantityText',\n lblItems: 'label_checkout_shipping_Items',\n lblItem: 'label_checkout_shipping_Item',\n lblAdd: 'label_ProductDisplayPage_body_Add',\n lblToCart: 'label_ProductDisplayPage_body_ToCart',\n lblGoToCart: 'label_CategoryPage_body_GoToCart',\n lblSubtotal: 'label_order_confirmation_sub_total',\n lblAddedToCart: 'label_CartButton_Added_To_Cart',\n lblFeatureNotAvailable: 'label_FeatureNotAvailable',\n};\n\n// Displayed on desktop when 3x2 grid is not full\nconst SkeletonCard = () => (\n \n {' '}\n \n);\n\nexport const AffinityRelatedProductsBlockV2 = ({\n shippingType,\n fulfillmentId,\n refetchSkuDetails,\n itemsToDisplay,\n}: {\n shippingType: string;\n fulfillmentId: number;\n refetchSkuDetails: () => void;\n itemsToDisplay?: number;\n}) => {\n const labels = useLabels(labelMap);\n const router = useRouter();\n const cartButtonRef = useRef(null);\n const [parts, setParts] = useState([]);\n const [showAllParts, setShowAllParts] = useState(false);\n const { amountOfSelectedItems, itemsTotalPrice } = parts.reduce(\n (total, i) =>\n i.isPartSelected && i.isAvailable\n ? {\n amountOfSelectedItems: ++total.amountOfSelectedItems,\n itemsTotalPrice: total.itemsTotalPrice + (i.totalPrice ?? 0),\n }\n : total,\n {\n itemsTotalPrice: 0,\n amountOfSelectedItems: 0,\n }\n );\n\n const {\n mutate: addToCartMutation,\n isLoading: isLoadingAddToCart,\n isSuccess: addAffinityToCartSuccess,\n error: addAffinityToCartError,\n } = useAddAffinityItemsToCartMutation({\n onSuccess: () => {\n cartButtonRef.current?.onSuccessfulAdd();\n refetchSkuDetails();\n },\n });\n const { data: affinityRelatedProductsData, isLoading: isLoadingAffinity } =\n useAffinityRelatedProducts({ itemsToDisplay });\n const { data: productDetailsData, isLoading: isLoadingProductDetails } = useProductDetails();\n const { data: skuDetailsData, isLoading: isLoadingSkuDetails } = useProductSkuDetails({\n enabled: Boolean(productDetailsData?.product?.itemId),\n skuIds: [productDetailsData?.product?.itemId ?? ''],\n });\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n const { data: headerData } = useHeaderData();\n const storeNumber = headerData?.storeNumber;\n const catalogVehicleId = headerData?.vehicleMap.catalogVehicleId;\n const addedAffinityToCart = useRef(false);\n\n // 'Added to Cart' should appear at the same time as button reads 'Go to Cart'\n const [showAddedToCart, setShowAddedToCart] = useState(addAffinityToCartSuccess);\n useEffect(() => {\n if (addAffinityToCartSuccess) {\n setTimeout(() => {\n setShowAddedToCart(true);\n }, SUCCESS_ANIMATION_DURATION);\n }\n }, [addAffinityToCartSuccess]);\n // Populates parts list with data from all sources required to add to cart\n useEffect(() => {\n if (productDetailsData && skuDetailsData?.[0] && affinityRelatedProductsData) {\n setParts([\n {\n availableFulfillmentIds: skuDetailsData[0].fulfillmentOptions.map(\n (fulfillmentOption) => fulfillmentOption.groupId\n ),\n totalPrice: skuDetailsData[0]?.skuPricingAndAvailability?.retailPrice ?? null,\n isPartSelected: addedAffinityToCart.current\n ? parts[0].isPartSelected\n : !skuDetailsData[0]?.itemPresentInCart,\n isAvailable:\n Boolean(skuDetailsData[0]?.fulfillmentOptions?.some((option) => option.available)) &&\n // Check that price is not null or 0\n Boolean(skuDetailsData[0]?.skuPricingAndAvailability?.retailPrice),\n productImageUrl: productDetailsData.product?.itemImageUrl ?? '',\n productName: productDetailsData.product?.itemDescription ?? '',\n skuId: productDetailsData.product?.itemId ?? '',\n productId: productDetailsData.product?.ecommProductId ?? '',\n isMainItem: true,\n originalPartTypeId: productDetailsData.product?.originalPartTypeId ?? '',\n },\n ...affinityRelatedProductsData.map(\n ({\n availableFulfillmentIds,\n totalPrice,\n productImageUrl,\n productName,\n skuId,\n seoUrl,\n productId,\n originalPartTypeId,\n }) => ({\n availableFulfillmentIds,\n totalPrice,\n productImageUrl,\n productName,\n skuId,\n seoUrl,\n productId,\n isAvailable: totalPrice !== null,\n isPartSelected: true,\n isMainItem: false,\n originalPartTypeId,\n })\n ),\n ]);\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [productDetailsData, skuDetailsData, affinityRelatedProductsData]);\n\n const addToCartButtonText = `${labels.lblAdd} ${amountOfSelectedItems} ${\n amountOfSelectedItems > 1 ? labels.lblItems : labels.lblItem\n } ${labels.lblToCart}`;\n\n const navigateToCart = () => {\n void router.push('/cart');\n };\n const handleAddToCart = () => {\n addedAffinityToCart.current = true;\n const selectedAndAvailableParts = parts.filter(\n ({ isPartSelected, isAvailable }) => isAvailable && isPartSelected\n );\n addToCartMutation({\n selectedAndAvailableParts,\n allPartsAmount: parts.length,\n fulfillmentId,\n storeNumber,\n catalogVehicleId,\n shippingType,\n });\n };\n return (\n \n \n \n {labels.lblCompleteTheJob}\n \n \n \n {Boolean(addAffinityToCartError) && (\n \n }\n />\n )}\n \n \n \n \n \n \n {!parts.length &&\n (isLoadingAffinity || isLoadingProductDetails || isLoadingSkuDetails) && (\n \n \n \n )}\n {parts.length &&\n parts.map((product, i) => (\n 2 && isMobile && !showAllParts}>\n {/* TODO: remove key when STARC resolves https://gitlab.autozone.com/it/open-interface/starc/-/issues/22 */}\n \n \n setParts((prevParts) =>\n prevParts.map((part) => {\n if (part.skuId === value) {\n part.isPartSelected = !part.isPartSelected;\n }\n return part;\n })\n )\n }\n />\n \n \n ))}\n {!isMobile && parts.length % 2 !== 0 && (\n \n \n \n )}\n \n setShowAllParts((a) => !a)}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n {labels.lblProductQuantityText}\n \n \n \n \n \n \n \n \n {labels.lblSubtotal}: ${itemsTotalPrice.toFixed(2)}\n \n \n \n {/* TODO: remove key when STARC resolves https://gitlab.autozone.com/it/open-interface/starc/-/issues/22 */}\n \n \n \n \n {labels.lblAddedToCart}\n \n \n \n \n \n \n \n \n {addAffinityToCartSuccess ? labels.lblGoToCart : addToCartButtonText}\n \n \n \n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { useAffinityRelatedProducts } from '@/features/pdpAffinity/api/getAffinityRelatedProducts';\nimport { useAddAffinityItemsToCartMutation } from '@/features/pdpAffinity/api/postAddAffinityItemsToCart';\nimport { AffinityRelatedProductsBlock } from '@/features/pdpAffinity/components/AffinityRelatedProductsBlock';\nimport { AffinityRelatedProductsBlockV2 } from '@/features/pdpAffinity/components/AffinityRelatedProductsBlockV2';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\n\nexport type CMSCompleteTheJobProps = {\n shippingType: string;\n fulfillmentId: number;\n refetchSkuDetails: () => void;\n itemsToDisplay?: number;\n};\n\nexport const CMSCompleteTheJob = ({\n shippingType,\n fulfillmentId,\n refetchSkuDetails,\n itemsToDisplay,\n}: CMSCompleteTheJobProps) => {\n const { data: affinityRelatedProducts } = useAffinityRelatedProducts({ itemsToDisplay });\n const { data: productDetailsData, isSuccess: isProductDetailsSuccess } = useProductDetails();\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const isMobileAndTablet = useMediaQuery((theme) => theme.breakpoints.down('md'));\n const shouldShowDesktopAffinityV2 = useMonetateDecisionFlag('desktopAffinityV2Enabled');\n const shouldShowMobileAndTabletAffinityV2 = useMonetateDecisionFlag(\n 'mobileAndTabletAffinityV2Enabled'\n );\n const productDetails = productDetailsData?.product;\n isProductDetailsSuccess && productDetails?.itemId ? [productDetails.itemId] : null;\n\n const addAffinityItemsToCartMutation = useAddAffinityItemsToCartMutation();\n\n if (!affinityRelatedProducts?.length) {\n return null;\n }\n\n return (isMobileAndTablet && shouldShowMobileAndTabletAffinityV2) ||\n (isDesktop && shouldShowDesktopAffinityV2) ? (\n \n ) : (\n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport type { PDPComparisonAnalytics } from '@/types/analytics';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport dynamic from 'next/dynamic';\nimport { useMemo } from 'react';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\n\nexport type CMSSEOComparisonChartProps = Record;\n\nconst LazyPDPComparisonTable = dynamic(\n () =>\n import('@/features/pdp/components/PDPComparisonTable/PDPComparisonTable').then(\n (mod) => mod.PDPComparisonTable\n ),\n { ssr: true }\n);\n\nexport function CMSSEOComparisonChart({}: CMSSEOComparisonChartProps) {\n const preferredVehicle = usePreferredVehicle();\n const { data: productDetails } = useProductDetails();\n const { product } = productDetails ?? {};\n\n const { data: skuDetailsData } = useProductSkuDetails({\n skuIds: product?.itemId ? [product.itemId] : [],\n enabled: !!product?.itemId,\n });\n const skuDetails = skuDetailsData?.[0];\n\n const pdpComparisonEnabled = useFeatureFlag('PDP_COMPARISON_ENABLED') === 'true';\n\n const pdpComparisonAnalyticsData = useMemo(() => {\n if (product) {\n const { originalPartTypeId, brandName, subBrandName, ecommProductId } = product;\n\n const data: PDPComparisonAnalytics = {\n originalPartTypeId,\n brandName: subBrandName ?? brandName,\n repositoryId: ecommProductId,\n };\n\n return data;\n }\n return null;\n }, [product]);\n\n return pdpComparisonEnabled &&\n product &&\n product.pdpComparisonEnabled &&\n product.itemId &&\n product.brandName &&\n product.ecommProductId &&\n pdpComparisonAnalyticsData ? (\n \n ) : null;\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport NextImage from '@/components/NextImage';\nimport { greyCarImg } from '@/constants/images/greyCarImg';\nimport { countryCodes } from '@/constants/locale';\nimport { useLocale } from '@/hooks/useLocale';\nimport React from 'react';\nimport styles from './styles.module.scss';\n\nconst rightArrowFitment = {\n src: '/images/fitment-right-arrow.svg',\n alt: 'view buyers guide',\n};\n\ntype BuyersGuideBannerProps = {\n openBuyersGuide: () => void;\n lblFitmentOne: string;\n lblFitmentTwo: string;\n};\n\nexport const BuyersGuideBanner = ({\n openBuyersGuide,\n lblFitmentOne,\n lblFitmentTwo,\n}: BuyersGuideBannerProps) => {\n const locale = useLocale();\n\n return (\n \n
\n \n
\n {locale === countryCodes.us && (\n <>\n
{lblFitmentOne}
\n
{lblFitmentTwo}
\n \n )}\n {(locale === countryCodes.mx || locale === countryCodes.ptBr) && (\n <>\n
{`${lblFitmentOne} ${lblFitmentTwo}`}
\n \n )}\n
\n \n
\n \n );\n};\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useLabels } from '@/hooks/useLabels';\nimport { BuyersGuideBanner } from './BuyersGuideBanner';\nimport styles from './styles.module.scss';\ntype Props = {\n children: React.ReactNode;\n openBuyersGuide: () => void;\n};\nconst labelMap = {\n labelThisPart: 'label_thisPart',\n labelFitsTheseVehicles: 'label_fitsTheseVehicles',\n};\n\nexport function BuyersGuideWrapper(props: Props) {\n const { openBuyersGuide } = props;\n const labels = useLabels(labelMap);\n return (\n <>\n
\n \n
\n {props.children}\n \n );\n}\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useState } from 'react';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { BuyersGuideWrapper } from './BuyersGuideWrapper';\nimport dynamic from 'next/dynamic';\n\nconst LazyBuyersGuideModal = dynamic(() =>\n import('./BuyersGuideModal').then((mod) => mod.BuyersGuideModal)\n);\n\nexport const BuyersGuide = () => {\n const { data: productDetails } = useProductDetails();\n\n const [showBuyersGuideModal, setShowBuyersGuideModal] = useState(false);\n\n if (\n !productDetails?.product?.vehicleSpecificFlag ||\n !productDetails.product.lineCode ||\n !productDetails.product.partNumber\n ) {\n return null;\n }\n\n const buyersGuideData = {\n skuId: productDetails.product.itemId,\n productLineCode: productDetails.product.lineCode,\n partNumber: productDetails.product.partNumber,\n };\n\n const openBuyersGuide = () => setShowBuyersGuideModal(true);\n\n return (\n \n {showBuyersGuideModal && (\n \n )}\n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport NextImage from '@/components/NextImage';\nimport { Skeleton, View } from '@az/starc-ui';\nimport cx from 'classnames';\nimport styles from './styles.module.scss';\n\nconst HorizontalPartCard = () => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\ntype HorizontalScrolledPartCardSkeletonProps = {\n className?: string;\n};\n\nexport const HorizontalScrolledPartCardSkeleton = ({\n className,\n}: HorizontalScrolledPartCardSkeletonProps) => {\n return (\n \n \n \n {Array.from({ length: 10 }).map((_, i) => (\n \n \n \n ))}\n \n \n \n \n \n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { Button, Icon, Skeleton, Text, View } from '@az/starc-ui';\nimport styles from './styles.module.scss';\nimport { NoFit } from '@az/starc-ui';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useEffect, useState } from 'react';\n\nconst labelsMap = {\n label_doesNotFitNotification_copy1: 'label_doesNotFitNotification_copy1',\n label_doesNotFitNotification_copy2: 'label_ProductDetailsPage_YMME_not',\n label_doesNotFitNotification_copy3: 'label_doesNotFitNotification_copy3',\n doesNotFitNotificationCTA: 'label_doesNotFitNotification_CTA',\n};\n\nexport const DoesNotFitNotification = ({ href }: { href: string }) => {\n const { data: headerData } = useHeaderData();\n const [isLoading, setIsLoading] = useState(true);\n const vehicle = headerData?.vehicleMap?.vehicleName ?? '';\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isDesktopMax = useMediaQuery((theme) => theme.breakpoints.up('xl'));\n const labels = useLabels(labelsMap);\n\n useEffect(() => {\n // Ensuring that isDesktopMax/isMobile have values before showing content\n setIsLoading(false);\n }, []);\n\n const label = (\n \n {labels.label_doesNotFitNotification_copy1}\n {` ${labels.label_doesNotFitNotification_copy2}`}\n {` ${labels.label_doesNotFitNotification_copy3}`}\n {` ${vehicle}.`}\n \n );\n\n if (isLoading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n {label}\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n// Dependencies\nimport cx from 'classnames';\n// STARC Components\nimport { View, Text, Skeleton } from '@az/starc-ui';\n// Features\nimport {\n CertonaBlock,\n HorizontalScrolledPartCardSkeleton,\n type CertonaRecommendation,\n type AddCertonaItemObjectType,\n} from '@/features/certona';\nimport { useLabel, useLabels } from '@/hooks/useLabels';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useGetProductSkuPrice } from '@/features/product/api/getProductSkuPrice';\nimport { useProductAvailability } from '@/features/product/api/getProductAvailability';\nimport { useLocale } from '@/hooks/useLocale';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\nimport { CMSYmme } from '@/features/contentstack/components/CMSYmme/CMSYmme';\nimport { useFeatureFlag } from '@/features/globalConfig';\n// Hooks\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\n// Utils\nimport { SmartLink } from '@/utils/smartLink';\n// Constants\nimport { countryCodes } from '@/constants/locale';\nimport { routePaths } from '@/constants/routePaths';\n// Styles\nimport styles from './styles.module.scss';\nimport root from 'window-or-global';\nimport { useEffect, useState } from 'react';\nimport { DoesNotFitNotification } from './DoesNotFitNotification';\nimport { getAvailableCertonaProducts } from '@/utils/getAvailableCertonaProducts';\n\ntype CertonaContentForOos = {\n '@type': string;\n containerID: string;\n desktop: boolean;\n mobile: boolean;\n name: string;\n tablet: boolean;\n themeCode: string;\n};\n\ntype NewCertonaForOosProps = {\n isOos: boolean;\n doesNotFit: boolean;\n logAnalytics: () => void;\n certonaRecommendations?: CertonaRecommendation[];\n setCertonaRecommendationAddedToCart: React.Dispatch>;\n setAddedCertonaItemObject: React.Dispatch>;\n};\n\nconst certonaContentForOos: CertonaContentForOos = {\n '@type': 'PDPPageBody_ProductDetail',\n containerID: 'pencilproduct1_rr',\n desktop: true,\n mobile: true,\n name: 'Certona Content Block',\n tablet: true,\n themeCode: 'grey',\n};\n\nconst labelsMap = {\n ADD_YOUR_VEHCILE: 'label_First_add_your_vehicle',\n GET_AN_EXACT_FIT_FOR_YOUR_VEHICLE: 'hyperlink_YMME_Body_GetAnExactFitForYourVehicle',\n};\n\ntype ComponentDisplayOption = 'skeleton' | 'container' | 'warning' | 'ymme';\n\nexport const NewCertonaForOos = ({\n isOos,\n doesNotFit,\n logAnalytics,\n certonaRecommendations,\n setCertonaRecommendationAddedToCart,\n setAddedCertonaItemObject,\n}: NewCertonaForOosProps) => {\n const labels = useLabels(labelsMap);\n const appPdpOosThisPartIsOutOfStock = useLabel(\n 'label_ProductDetailsPage_OOS_This_Product_Is_Out_Of_Stock'\n );\n const appPdpOosShopSimilarItemsBelow = useLabel(\n 'label_ProductDetailsPage_OOS_Shop_similar_items_below'\n );\n const appPdpDoesNotFitThesePartsFit = useLabel(\n 'label_ProductDetailsPage_Does_Not_Fit_These_Parts_Fit'\n );\n const appPdpDoesNotFitYour = useLabel('label_MyAccountMyProfile_landing_RewardYour');\n const labelShopAll = useLabel('label_Homepage_content_ShopAll');\n\n const isCertonaEnabledForOosOrDoesNotFit =\n useFeatureFlag('IS_OOS_OR_DOES_NOT_FIT_CONTAINER_ENABLED') === 'true';\n const isPdpCertonaAddToCartEnabled =\n useFeatureFlag('IS_PDP_PAGE_CERTONA_ADD_TO_CART_ENABLED') === 'true';\n\n const [availableProductsForPencilLength, setAvailableProductsForPencilLength] = useState(0);\n\n const { data: headerData } = useHeaderData();\n const hasVehicle = headerData?.vehicleMap?.vehicleId !== '';\n const storeNumber = headerData?.storeNumber;\n\n const { data: productDetailsData } = useProductDetails();\n const { vehicleFitFlag, breadCrumbs, recordType } = productDetailsData?.product ?? {};\n const shelfSeoUrl =\n breadCrumbs?.find((item) => item.pageType === 'ProductShelf')?.seoUrl || routePaths.blankURL;\n\n const locale = useLocale();\n const preferredVehicle = usePreferredVehicle();\n const isMobile = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.only('lg'));\n\n const [displayOption, setDisplayOption] = useState('skeleton');\n\n const vehicleTextForDoesNotFit = `${preferredVehicle?.year} ${preferredVehicle?.make} ${preferredVehicle?.model}.`;\n\n const index = certonaRecommendations?.findIndex((item) =>\n item.scheme.includes(certonaContentForOos.containerID || '')\n );\n const items = certonaRecommendations?.[index ?? -1]?.items;\n const skuNumbers = items?.map((part) => part.id);\n const {\n data: productAvailability,\n isFetching: productAvailabilityIsFetching,\n isSuccess: productAvailabilityIsSuccess,\n } = useProductAvailability({\n enabled: !!skuNumbers?.length,\n skuIds: skuNumbers ?? null,\n });\n\n const shownItemsAmount = isPdpCertonaAddToCartEnabled\n ? availableProductsForPencilLength\n : items?.length;\n\n const { data: pricingInfo } = useGetProductSkuPrice({\n skuNumbers,\n storeNumber,\n enabled: !!storeNumber && !!skuNumbers?.length,\n staleTime: 5 * 60000, // 5 minutes\n });\n\n const updateAfterAddtoCartClick = () => {\n setCertonaRecommendationAddedToCart(true);\n };\n\n useEffect(() => {\n if (\n productAvailabilityIsFetching ||\n root.certonaNotCalled === true ||\n root.certonaNotCalled === undefined\n ) {\n setDisplayOption('skeleton');\n }\n\n const skuDetailsData = productAvailabilityIsSuccess ? productAvailability : null;\n const availableProductsForPencil =\n getAvailableCertonaProducts({ items, skuDetailsData, pricingInfo }) ?? [];\n\n setAvailableProductsForPencilLength(availableProductsForPencil.length);\n\n const shouldShowFitmentMessage = locale === countryCodes.enUS && hasVehicle && doesNotFit;\n\n if (\n certonaRecommendations?.length &&\n availableProductsForPencil.length &&\n !productAvailabilityIsFetching &&\n root.certonaNotCalled === false &&\n root.certonaNotCalled !== undefined\n ) {\n setDisplayOption('container');\n } else if (\n !productAvailabilityIsFetching &&\n root.certonaNotCalled === false &&\n root.certonaNotCalled !== undefined\n ) {\n if (\n isOos &&\n ((!hasVehicle && !vehicleFitFlag && recordType !== 'app') ||\n (hasVehicle && (!vehicleFitFlag || (vehicleFitFlag && recordType === 'app'))))\n ) {\n setDisplayOption('ymme');\n } else if (shouldShowFitmentMessage) {\n setDisplayOption('warning');\n }\n }\n }, [\n items,\n pricingInfo,\n productAvailability,\n productAvailabilityIsSuccess,\n certonaRecommendations?.length,\n doesNotFit,\n hasVehicle,\n isOos,\n recordType,\n locale,\n vehicleFitFlag,\n productAvailabilityIsFetching,\n ]);\n\n const truncateText = (text: string, maxCharacters?: number) => {\n if (maxCharacters === undefined) {\n return text;\n } else if (maxCharacters < 1) {\n return;\n } else {\n let truncatedText = text.slice(0, maxCharacters - 1);\n if (text.length > maxCharacters) {\n truncatedText = truncatedText.trimEnd() + '\\u2026';\n }\n return truncatedText;\n }\n };\n\n const title = Boolean(availableProductsForPencilLength) ? (\n = 2 ? 'space-between' : 'start',\n l: availableProductsForPencilLength >= 2 ? 'space-between' : 'start',\n }}\n align={isMobile ? 'start' : 'center'}\n padding={{ s: 0, m: [3, 0, 0, 14 / 4], l: [3, 0, 0, 14 / 4] }}\n className={styles.titlesContainer}\n >\n \n {isOos ? (\n \n {`${appPdpOosThisPartIsOutOfStock}`}.{' '}\n \n {`${appPdpOosShopSimilarItemsBelow}`}.\n \n \n ) : (\n doesNotFit && (\n \n {`${appPdpDoesNotFitThesePartsFit} ${appPdpDoesNotFitYour} `}{' '}\n \n {truncateText(\n vehicleTextForDoesNotFit,\n isMobile\n ? 31\n : isTablet\n ? 45\n : isDesktop && shownItemsAmount === 2\n ? 46\n : undefined\n )}\n \n \n )\n )}\n \n \n \n = 3,\n [styles.twoItemsAvailable]: shownItemsAmount && shownItemsAmount === 2,\n })}\n >\n {labelShopAll}\n \n \n \n \n ) : (\n ''\n );\n\n if (displayOption === 'ymme') {\n return (\n \n \n \n \n \n );\n }\n\n if (displayOption === 'warning') {\n const seePartsThatFitHref =\n breadCrumbs?.find((item) => item.pageType === 'ProductShelf')?.seoUrl ?? routePaths.blankURL;\n return ;\n }\n\n if (displayOption === 'container') {\n return (\n \n {\n updateAfterAddtoCartClick();\n }}\n setAddedCertonaItemObject={setAddedCertonaItemObject}\n containerType=\"horizontal_scrolled\"\n certonaType={isOos ? 'OOS' : doesNotFit ? 'DNF' : undefined}\n shelfSeoUrl={shelfSeoUrl}\n updateAfterAddtoCartClick={updateAfterAddtoCartClick}\n showInitialSkeleton\n inDrawer={true}\n onlyShowAvailableProductRecommendations={isPdpCertonaAddToCartEnabled}\n />\n \n );\n }\n\n return ;\n};\n\nconst SkeletonWithTitle = () => {\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { routePaths } from '@/constants/routePaths';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport { View } from '@az/starc-ui';\nimport { usePageSpecificData } from '@/utils/analytics/usePageSpecificData';\nimport { CMSYmme } from '@/features/contentstack/components/CMSYmme/CMSYmme';\nimport styles from './CMSPDPYmme.module.scss';\nimport { NewCertonaForOos } from '@/components/ProductDetail/NewCertonaForOos';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useIsStoreSelected } from '@/features/header/hooks/useIsStoreSelected';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { type CertonaRecommendation, type AddCertonaItemObjectType } from '@/features/certona';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { countryCodes } from '@/constants/locale';\nimport { DoesNotFitNotification } from '@/components/ProductDetail/NewCertonaForOos/DoesNotFitNotification';\nimport { pageTypes } from '@/constants/page';\n\ntype Props = {\n certonaRecommendations?: CertonaRecommendation[];\n certonaLength?: boolean;\n isFetchingNewContainerAvailability?: boolean;\n setCertonaRecommendationAddedToCart: React.Dispatch>;\n setAddedCertonaItemObject: React.Dispatch>;\n};\n\nconst labelsMap = {\n ADD_YOUR_VEHCILE: 'label_First_add_your_vehicle',\n GET_AN_EXACT_FIT_FOR_YOUR_VEHICLE: 'hyperlink_YMME_Body_GetAnExactFitForYourVehicle',\n THIS_PART_DOES: 'label_ProductDetailsPage_YMME_this_part_does',\n NOT: 'label_ProductDetailsPage_YMME_not',\n FIT_YOUR_CURRENT_VEHICLE: 'label_ProductDetailsPage_YMME_fit_your_current_vehicle',\n SEE_PARTS_THAT_FIT: 'label_ProductDetailsPage_YMME_see_parts_that_fit',\n};\n\nexport function CMSPDPYmme({\n // certonaType,\n certonaRecommendations,\n setCertonaRecommendationAddedToCart,\n setAddedCertonaItemObject,\n}: Props) {\n const labels = useLabels(labelsMap);\n const locale = useLocale();\n const isBR = locale === countryCodes.ptBr;\n\n const isCertonaEnabledForOosOrDoesNotFit =\n useFeatureFlag('IS_OOS_OR_DOES_NOT_FIT_CONTAINER_ENABLED') === 'true';\n\n const { data: headerData } = useHeaderData();\n const hasVehicle = headerData?.vehicleMap?.vehicleId !== '';\n\n const { setPageSpecificData } = usePageSpecificData();\n const { data: productDetailsData } = useProductDetails();\n const { recordType, breadCrumbs, itemId, vehicleFitFlag } = productDetailsData?.product ?? {};\n\n const logAnalytics = () => {\n setPageSpecificData({\n productFindingMethod: 'Product Toast Notification',\n pfmLocation: 'Product Toast Notification',\n eventType: 'productToastNotificationClick',\n });\n };\n\n const { data: skuDetailsData } = useProductSkuDetails({\n skuIds: itemId ? [itemId] : [],\n });\n\n const itemFulfillmentOptions =\n skuDetailsData?.[0]?.skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions;\n\n const hasStoreSelected = useIsStoreSelected();\n\n const isOos =\n hasStoreSelected &&\n (hasVehicle || (!hasVehicle && recordType !== 'app')) &&\n itemFulfillmentOptions?.some((item) => item.available || item.sisterStoreAvailable) === false;\n const doesNotFit = hasStoreSelected && hasVehicle && recordType === 'app' && !vehicleFitFlag;\n const seePartsThatFitHref =\n breadCrumbs?.find((item) => item.pageType === 'ProductShelf')?.seoUrl ?? routePaths.blankURL;\n\n if (isCertonaEnabledForOosOrDoesNotFit && (isOos || doesNotFit)) {\n return (\n \n );\n }\n\n return (\n <>\n {!hasVehicle && productDetailsData?.product?.recordType === 'app' ? (\n \n \n \n ) : !vehicleFitFlag && recordType === 'app' ? (\n \n ) : null}\n \n );\n}\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useMemo } from 'react';\nimport Head from 'next/head';\nimport { useRouter } from 'next/router';\nimport { useLocale } from '@/hooks/useLocale';\nimport { currencyLocales } from '@/constants/locale';\nimport { useProductSkuDeals } from '@/features/product/api/getProductDeals';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { getPathnameFromAsPath } from '@/utils/urlHelpers';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport type { Currency } from '@/types/i18n';\nimport { getBaseSchemaUrl } from '@/utils/common';\n\ntype SchemaOffers = {\n '@type': string;\n url: string;\n availability: string;\n price: string;\n priceCurrency: Currency;\n priceSpecification: UnitPriceSpecificationSchema | UnitPriceSpecificationSchema[];\n hasMerchantReturnPolicy: MerchantReturnPolicy;\n};\n\ntype MerchantReturnPolicy = {\n '@type': string;\n returnPolicyCategory: string;\n returnPolicyDays: number;\n returnMethod: string;\n returnFees: string;\n};\n\ntype Schema = {\n '@context': string;\n '@type': string;\n '@id': string;\n name: string;\n image: string;\n description: string;\n mpn: string;\n sku: string;\n brand: { '@type': 'Brand'; name: string };\n offers?: SchemaOffers;\n};\n\ntype UnitPriceSpecificationSchema = {\n '@type': 'UnitPriceSpecification';\n price: string;\n priceCurrency: Currency;\n priceType:\n | 'https://schema.org/InvoicePrice'\n | 'https://schema.org/StrikethroughPrice'\n | 'https://schema.org/ListPrice'\n | 'https://schema.org/MSRP'\n | 'https://schema.org/MinimumAdvertisedPrice'\n | 'https://schema.org/SRP'\n | 'https://schema.org/SalePrice';\n};\n\nexport const SEOProductSchema = () => {\n const isNewDealsApiEnabled = useFeatureFlag('IS_NEW_DEALS_API_ENABLED') === 'true';\n\n const { data: productDetailsData, isSuccess: productDetailsSuccess } = useProductDetails();\n const skuIds =\n productDetailsSuccess && productDetailsData?.product?.itemId\n ? [productDetailsData.product.itemId]\n : null;\n\n const { data: skuDetailsData } = useProductSkuDetails({\n skuIds,\n });\n const { data: skuDealsData } = useProductSkuDeals({\n skuIds,\n enabled: isNewDealsApiEnabled,\n });\n const locale = useLocale();\n const router = useRouter();\n\n const productSchema = useMemo(() => {\n if (!productDetailsData) {\n return null;\n }\n\n const productDetails = productDetailsData.product;\n const skuDetails = skuDetailsData?.[0] ?? null;\n const skuPricingAndAvailability = skuDetails?.skuPricingAndAvailability;\n const retailPrice = skuPricingAndAvailability?.retailPrice || 0;\n const corePrice = skuPricingAndAvailability?.corePrice || 0;\n const price = Number(retailPrice + corePrice).toFixed(2);\n const isProductAvailable =\n skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions?.some(\n (option) => option.availableQty > 0\n );\n\n const discountedPrice = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.discountedPrice\n : skuDetails?.skuPricingAndAvailability?.discountedPrice;\n\n const {\n subBrandName,\n marketingCopy,\n featuresAndBenefits,\n partNumber,\n itemDescription,\n itemId,\n itemImageUrl,\n } = productDetails ?? {};\n\n const baseUrl = getBaseSchemaUrl(locale);\n\n let productDescription = '';\n\n if (marketingCopy) {\n productDescription = marketingCopy;\n } else if (featuresAndBenefits?.length) {\n productDescription = featuresAndBenefits.join(' ');\n }\n\n const schema: Schema = {\n '@context': 'https://schema.org',\n '@type': 'Product',\n '@id': `${baseUrl}${getPathnameFromAsPath(router.asPath)}`,\n name: itemDescription ?? '',\n image: itemImageUrl ?? '',\n description: productDescription,\n mpn: partNumber ?? '',\n sku: itemId ?? '',\n brand: { '@type': 'Brand', name: subBrandName ?? '' },\n };\n\n const priceSpecification: UnitPriceSpecificationSchema[] = [];\n\n priceSpecification.push({\n '@type': 'UnitPriceSpecification',\n price,\n priceCurrency: currencyLocales[locale],\n priceType: discountedPrice\n ? 'https://schema.org/StrikethroughPrice'\n : 'https://schema.org/ListPrice',\n });\n\n schema.offers = {\n '@type': 'Offer',\n url: `${baseUrl}${getPathnameFromAsPath(router.asPath)}`,\n availability: isProductAvailable\n ? 'https://schema.org/InStock'\n : 'https://schema.org/OutOfStock',\n price: discountedPrice || price,\n priceCurrency: currencyLocales[locale],\n priceSpecification,\n hasMerchantReturnPolicy: {\n '@type': 'MerchantReturnPolicy',\n returnPolicyCategory: 'https://schema.org/MerchantReturnFiniteReturnWindow',\n returnPolicyDays: 30,\n returnMethod: 'https://schema.org/ReturnByMail',\n returnFees: 'https://schema.org/FreeReturn',\n },\n };\n\n return JSON.stringify(schema);\n }, [\n locale,\n router.asPath,\n isNewDealsApiEnabled,\n productDetailsData,\n skuDetailsData,\n skuDealsData,\n ]);\n\n if (!productSchema) {\n return null;\n }\n\n return (\n \n \n \n );\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport default function getPosition(elm: HTMLElement): {\n x: number;\n y: number;\n} {\n let xPos = 0,\n yPos = 0;\n\n while (elm) {\n xPos += elm.offsetLeft - elm.scrollLeft + elm.clientLeft;\n yPos += elm.offsetTop - elm.scrollTop + elm.clientTop;\n\n // @ts-expect-error fix type\n elm = elm.offsetParent;\n }\n\n return {\n x: xPos,\n y: yPos,\n };\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport NextImage from '@/components/NextImage';\nimport { rightArrowActive } from '@/constants/images/rightArrowActive';\nimport { useLabels } from '@/hooks/useLabels';\nimport { View, Text } from '@az/starc-ui';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport styles from './styles.module.scss';\n\ntype Props = {\n reviewsRef: React.Ref;\n skuId: string;\n productReviewsURL: string | undefined;\n scriptReady: boolean;\n};\n\nconst labelMap = {\n seeMoreReviews: 'label_reviews_seeMoreReviews',\n};\n\nconst ReviewsContent = ({ reviewsRef, skuId, productReviewsURL, scriptReady }: Props) => {\n const labels = useLabels(labelMap);\n\n return (\n
\n {scriptReady &&
}\n {productReviewsURL && (\n \n \n \n {labels.seeMoreReviews}\n \n \n \n \n )}\n
\n );\n};\n\nexport { ReviewsContent };\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport ExpansionPanel from '@/components/AZCustomComponent/ExpansionPanel';\nimport { countryCodes } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport ExpandIcon from '@/public/images/footer/footer_down_arrow.svg';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport cx from 'classnames';\nimport { useEffect, useRef, useState } from 'react';\nimport { getProductReviewsURL } from '@/features/product';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { SEOProductSchema } from '../SEOProductSchema';\nimport styles from './styles.module.scss';\nimport getPosition from '@/utils/crossBrowserHelpers/getPosition';\nimport scrollToElem from '@/utils/crossBrowserHelpers/scroll';\nimport { useSelector } from 'react-redux';\nimport { type ReduxState } from '@/types';\nimport Script from 'next/script';\nimport { useRouter } from 'next/router';\nimport { ReviewsContent } from './ReviewsContent';\nimport Head from 'next/head';\n\nexport type BazaarVoiceProps = {\n contentItem?: {\n tablet: boolean;\n desktop: boolean;\n '@type': string;\n themeCode: string;\n name: string;\n mobile: boolean;\n collapsedOnLoadMobile: boolean;\n collapsedOnLoadTablet: boolean;\n collapsedOnLoadDesktop: boolean;\n };\n};\n\nconst labelMap = {\n seeMoreReviews: 'label_reviews_seeMoreReviews',\n reviewsHeaderLabel: 'Label_bazaarvoice_Reviews_header',\n};\n\nexport const BazaarVoice = ({ contentItem }: BazaarVoiceProps) => {\n const deviceType = useSelector(({ appData }) => appData.deviceType);\n const isMobileDevice = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n const isABot = deviceType === 'bot';\n const [queryEnabled, setQueryEnabled] = useState(() => isABot || !isMobileDevice);\n const productReviewsEnabled = useFeatureFlag('PRP_ENABLED') === 'true';\n const router = useRouter();\n const { data: productDetailsData, isSuccess: productDetailsReqIsSuccess } = useProductDetails();\n const skuDetailsResult = useProductSkuDetails({\n skuIds:\n productDetailsReqIsSuccess && productDetailsData.product?.itemId\n ? [productDetailsData.product.itemId]\n : null,\n });\n\n const labels = useLabels(labelMap);\n const locale = useLocale();\n const productReviewsURL =\n productReviewsEnabled &&\n productDetailsData?.product?.hasReviews &&\n Array.isArray(router.query.slug)\n ? `/${getProductReviewsURL(router.query.slug.join('/'))}`\n : undefined;\n\n const reviewsRef = useRef(null);\n\n const isMobileOrTablet = useMediaQuery((theme) => theme.breakpoints.down('md'));\n\n const RR_AZRMOB_PDP_ENABLED = useFeatureFlag('RR_AZRMOB_PDP_ENABLED');\n const RR_AZRMOB_PDP_TAG = useFeatureFlag('RR_AZRMOB_PDP_TAG');\n const RR_AZRWEB_PDP_ENABLED = useFeatureFlag('RR_AZRWEB_PDP_ENABLED');\n const RR_AZRWEB_PDP_TAG = useFeatureFlag('RR_AZRWEB_PDP_TAG');\n const BZ_FIX: boolean = useFeatureFlag('BZ_FIX') === 'true';\n\n const isScriptReadyRef = useRef(BZ_FIX);\n const [scriptReady, setScriptReady] = useState(isScriptReadyRef.current);\n const [customHeaderScript, setCustomHeaderScript] = useState();\n const customHeaderScriptPath =\n isMobileOrTablet && RR_AZRMOB_PDP_ENABLED === 'true'\n ? RR_AZRMOB_PDP_TAG\n : RR_AZRWEB_PDP_ENABLED === 'true'\n ? RR_AZRWEB_PDP_TAG\n : '';\n\n const handleScriptReady = () => {\n setScriptReady(() => true);\n isScriptReadyRef.current = true;\n };\n\n useEffect(() => {\n //added to avoid hydration error on pdp https://nextjs.org/docs/messages/react-hydration-error\n setCustomHeaderScript(customHeaderScriptPath);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [customHeaderScriptPath]);\n\n useEffect(() => {\n const handleEnableQuery = () => {\n setQueryEnabled(true);\n window.removeEventListener('scroll', handleEnableQuery);\n };\n\n if (!isABot) {\n window.addEventListener('scroll', handleEnableQuery);\n }\n\n return () => {\n window.removeEventListener('scroll', handleEnableQuery);\n };\n }, [isABot]);\n\n const skuId = productDetailsReqIsSuccess ? productDetailsData.product?.itemId : null;\n\n useEffect(() => {\n if (!skuDetailsResult.isSuccess && productDetailsReqIsSuccess) {\n return;\n }\n\n const hash = window.location.hash;\n if (hash !== '#bv_PDPReviews' || !skuId) {\n return;\n }\n const moveToReviews = () => {\n const reviewElement = document.getElementById('tab-reviews');\n\n if (reviewElement != null) {\n const client = getPosition(reviewElement);\n scrollToElem(client.y - 75);\n }\n };\n\n const checkingReviewsInterval = setInterval(() => {\n moveToReviews();\n clearInterval(checkingReviewsInterval);\n }, 2000);\n\n const intervalCleaner = setTimeout(() => {\n clearInterval(checkingReviewsInterval);\n }, 15000);\n\n return () => {\n clearInterval(checkingReviewsInterval);\n clearTimeout(intervalCleaner);\n };\n }, [skuId, productDetailsReqIsSuccess, skuDetailsResult.isSuccess]);\n\n const reviewsEnabled =\n ((isMobileOrTablet && RR_AZRMOB_PDP_ENABLED === 'true') || RR_AZRWEB_PDP_ENABLED === 'true') &&\n queryEnabled;\n\n return (\n
\n {reviewsEnabled && customHeaderScript && !BZ_FIX && (\n \n )}\n {reviewsEnabled && customHeaderScript && BZ_FIX && (\n \n \n \n )}\n {reviewsEnabled && locale === countryCodes.us && (\n
\n \n {isMobileDevice ? (\n \n {labels.reviewsHeaderLabel}\n \n }\n content={\n skuId && (\n \n )\n }\n expandIcon={}\n defaultExpandedProp={!contentItem?.collapsedOnLoadMobile}\n classes={{\n summary: styles.expansionPanelSummary,\n detailsRoot: styles.expansionPanelDetails,\n }}\n />\n ) : (\n skuId && (\n \n )\n )}\n
\n )}\n
\n );\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport Breadcrumbs from '@/components/AZCustomComponent/BreadcrumbSTARC';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { formatBreadcrumbsForSTARC } from '@/utils/STARC/STARC';\nimport styles from './CMSBreadcrumbs.module.scss';\n\nexport function CMSBreadcrumbs() {\n const { data: productDetails } = useProductDetails();\n\n if (!productDetails?.product) {\n return null;\n }\n\n return (\n ({\n ...breadcrumb,\n url: breadcrumb.seoUrl,\n }))\n )}\n />\n );\n}\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { PageBodyItem } from '../interface';\n\nexport const filterCTJBlocks = (\n content: PageBodyItem[],\n hasCustomCTJ: boolean | undefined\n): PageBodyItem[] | undefined => {\n if (hasCustomCTJ) {\n return content?.filter((block) => !block.completethejob || block.completethejob?.taxonomy);\n }\n\n let hasFoundADefaultBlock = false;\n const filteredContent = content?.filter((block) => {\n if (block.completethejob && !block.completethejob.taxonomy) {\n if (!hasFoundADefaultBlock) {\n hasFoundADefaultBlock = true;\n return true;\n }\n return false;\n }\n return true;\n });\n\n return filteredContent;\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { PageBodyItem, PageBodyItemWithPriority } from '../interface';\n\nexport const prioritizeLCP = (\n data: PageBodyItem[] | undefined\n): PageBodyItemWithPriority[] | undefined => {\n let priorityBannerAssigned = false;\n let hasProductDetails = false;\n\n return data?.map((block) => {\n if (block?.product_details && !hasProductDetails) {\n hasProductDetails = true;\n }\n if (block.banner?.banner?.[0]?.asset_size && !priorityBannerAssigned && !hasProductDetails) {\n priorityBannerAssigned = true;\n\n return {\n ...block,\n banner: {\n ...block.banner,\n banner: [\n {\n ...block.banner.banner[0],\n image: {\n ...block?.banner?.banner?.[0]?.image,\n priority: true,\n },\n },\n ],\n },\n };\n }\n return block;\n });\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useMemo } from 'react';\nimport ProductDetailSpecification, {\n type ProductDetailSpecificationProps,\n} from '@/components/ProductDetail/ProductDetailSpecification';\nimport { STARCTypography } from '@/components/STARCTypography';\nimport { CMSBanner } from '@/features/contentstack/components/CMSBanner/CMSBanner';\nimport { CMSCertona } from '@/features/contentstack/components/CMSCertona/CMSCertona';\nimport {\n CMSCompleteTheJob,\n type CMSCompleteTheJobProps,\n} from '@/features/contentstack/components/CMSCompleteTheJob/CMSCompleteTheJob';\nimport { CMSSpacer } from '@/features/contentstack/components/CMSSpacer/CMSSpacer';\nimport type {\n FormattedContentStackDefaultPDP,\n FormattedContentStackPremiumPDP,\n ContentStackCertona,\n} from '@/features/contentstack/interface';\nimport { CMSSEOComparisonChart } from '@/features/contentstack/components/CMSSEOComparisonChart/CMSSEOComparisonChart';\nimport { CMSExperienceInjector } from '@/features/contentstack/components/CMSExperienceInjector/CMSExperienceInjector';\nimport { BuyersGuide } from '../BuyersGuide';\nimport { Hidden, View } from '@az/starc-ui';\nimport { CMSModularHandler as CMSLPModularHandler } from '../../../../features/landingPage/components/CMSModularHandler';\nimport { CMSPDPYmme } from './CMSPDPYmme';\nimport { BazaarVoice } from '../BazaarVoice';\nimport {\n ScrolledPartCardSkeleton,\n type CertonaBlockProps,\n type AddCertonaItemObjectType,\n} from '@/features/certona';\nimport { CMSBreadcrumbs } from './CMSBreadcrumbs';\nimport { default as CustomHidden } from '@/components/Hidden';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { filterCTJBlocks } from '../../utils/filterCTJBlocks';\nimport { prioritizeLCP } from '../../utils/prioritizeLCP';\n\ntype Props = {\n content:\n | FormattedContentStackDefaultPDP['pageBody']\n | FormattedContentStackPremiumPDP['pageBody'];\n ProductDetails: JSX.Element;\n certonaType: 'accessoriesproduct' | 'pencilpdp' | 'pdp';\n 'data-testid'?: string;\n canRenderComparisonChart: boolean;\n setCertonaRecommendationAddedToCart: React.Dispatch>;\n setAddedCertonaItemObject: React.Dispatch>;\n} & Pick<\n CertonaBlockProps,\n 'certonaRecommendations' | 'onCertonaRecommendationClick' | 'setAddedCertonaItemObject'\n> &\n ProductDetailSpecificationProps &\n CMSCompleteTheJobProps;\n\nconst CMSModularHandler = ({\n content,\n certonaRecommendations,\n onCertonaRecommendationClick,\n setAddedCertonaItemObject,\n ProductDetails,\n setShouldOpenSpecsPanel,\n setWarrantyModal,\n shouldOpenSpecsPanel,\n shouldShowLoadingSkeleton,\n warrantyModal,\n fulfillmentId,\n shippingType,\n canRenderComparisonChart,\n certonaType,\n setCertonaRecommendationAddedToCart,\n refetchSkuDetails,\n ...props\n}: Props) => {\n const isPdpCertonaAddToCartEnabled =\n useFeatureFlag('IS_PDP_PAGE_CERTONA_ADD_TO_CART_ENABLED') === 'true';\n\n const hasCustomCTJ = useMemo(() => {\n return content?.some((block) => block.completethejob?.taxonomy);\n }, [content]);\n\n const filteredContent = useMemo(() => {\n return prioritizeLCP(filterCTJBlocks(content ?? [], hasCustomCTJ));\n }, [content, hasCustomCTJ]);\n\n return (\n \n \n {filteredContent?.map((modularBlock, index) => {\n if (modularBlock.banner?.banner?.[0]?.asset_size) {\n const banner = modularBlock.banner.banner[0];\n const isPriorityBanner =\n banner?.image && 'priority' in banner.image && banner.image.priority;\n\n return (\n \n \n \n );\n }\n\n if (modularBlock.buyers_guide_mobile?.enable) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.buyers_guide?.enable) {\n return (\n \n \n \n );\n }\n\n if ('pdp_slot1' in modularBlock && modularBlock.pdp_slot1?.pdp_slot1) {\n return (\n \n );\n }\n\n if ('pdp_slot2' in modularBlock && modularBlock.pdp_slot2?.pdp_slot2) {\n return (\n \n );\n }\n\n if (\n 'experience_injector' in modularBlock &&\n modularBlock.experience_injector?.experience_injector\n ) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.ymme?.enable) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.bazaarvoice?.enable) {\n return (\n \n \n \n \n \n );\n }\n\n if (modularBlock.bazaarvoice_mobile?.enable) {\n return (\n \n \n \n \n \n );\n }\n\n const certonaContent =\n modularBlock.certona_middle_content?.certona?.[0] ??\n modularBlock.certona_bottom_content?.certona?.[0] ??\n modularBlock.certona_content_2?.certona?.[0];\n\n const certonaMiddleOos =\n modularBlock.certona_middle_content?.certona?.[0]?.container_id &&\n modularBlock.certona_middle_content.certona[0]?.container_id.includes(\n 'accessoriesproduct'\n )\n ? 'pencilproduct2_rr'\n : modularBlock.certona_middle_content?.certona?.[0];\n\n const certonaBottomOos =\n modularBlock.certona_content_2?.certona?.[0].container_id &&\n !modularBlock.certona_content_2.certona[0]?.container_id.includes('accessoriesproduct')\n ? 'pencilproduct3_rr'\n : modularBlock.certona_content_2?.certona?.[0];\n\n const certonaContentForOos = certonaContent && {\n ...certonaContent,\n container_id: certonaMiddleOos ?? certonaBottomOos ?? '',\n };\n\n const certonaContentBlock =\n certonaType === 'pencilpdp' ? certonaContentForOos : certonaContent;\n\n const isCertonaContentPresent =\n certonaContentBlock?.container_id &&\n certonaRecommendations?.some((recommendation) =>\n recommendation?.items?.length && Array.isArray(recommendation.scheme)\n ? recommendation.scheme.includes(certonaContentBlock.container_id)\n : recommendation.scheme === certonaContentBlock?.container_id\n );\n\n if (certonaContentBlock && isCertonaContentPresent) {\n return (\n \n {\n setCertonaRecommendationAddedToCart?.(true);\n }}\n onlyShowAvailableProductRecommendations={isPdpCertonaAddToCartEnabled}\n LoadingSkeleton={ScrolledPartCardSkeleton}\n checkContainerNameIncludes\n />\n \n );\n }\n\n if (modularBlock.product_specification?.enable) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.product_details?.enable) {\n return (\n \n {ProductDetails}\n \n );\n }\n\n if (modularBlock.breadcrumb?.enable) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.completethejob) {\n return (\n \n \n \n );\n }\n\n if (modularBlock.seo_comparision_chart?.enable && canRenderComparisonChart) {\n return (\n \n \n \n );\n }\n })}\n \n \n );\n};\n\nexport { CMSModularHandler };\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport Hidden from '../../../Hidden';\nimport Image from '@/components/NextImage';\nimport Skeleton from '../../../Skeleton/Skeleton';\nimport styles from './LeftSection.module.scss';\nconst skeletonImage = '/images/image-placeholder-skeleton-load.svg';\nconst skeletonThumbnails = Array(6).fill(skeletonImage);\nconst mobileSkeletonDots = Array(4).fill(1);\n\nexport default function Left() {\n return (\n <>\n \n
\n
\n \"product-placeholder\"\n
\n \n {mobileSkeletonDots.map((_, index) => (\n \n ))}\n \n \n {skeletonThumbnails.map((thumbnail, index) => (\n \"product-placeholder\"\n ))}\n \n
\n \n );\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport Skeleton from '../../../Skeleton/Skeleton';\nimport styles from './RightSection.module.scss';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useIsStoreSelected } from '@/features/header/hooks/useIsStoreSelected';\nimport { usePriceHiding } from '@/hooks/usePriceHiding';\n\nconst DeliveryOption = ({ className }: { className?: string }) => {\n return (\n
\n
\n \n
\n );\n};\n\nconst Right = ({ currencySymbol = '$' }) => {\n const locale = useLocale();\n const isStoreSelected = useIsStoreSelected();\n const hidePricing = usePriceHiding();\n const isMxSite = locale === countryCodes.mx;\n const isBR = locale === countryCodes.ptBr;\n return (\n
\n \n \n \n \n
\n
\n
\n {hidePricing || (isBR && !isStoreSelected) ? null : (\n
{currencySymbol}
\n )}\n \n
\n {!isBR && (\n
\n
\n
\n
\n
\n )}\n
\n {!isMxSite ? (\n
\n \n \n \n
\n ) : (\n <>\n \n \n \n )}\n\n {!isBR &&
}\n
\n );\n};\n\nexport default Right;\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const accessoriesOptions = [\n 'interior accessories',\n 'exterior accessories',\n 'truck and towing',\n 'tools and equipment',\n 'fluids and chemicals',\n 'performance',\n];\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useLocale } from '@/hooks/useLocale';\nimport type { Locale } from '@/types/i18n';\nimport { getAxios } from '@/lib/axios';\nimport { type AxiosInstance } from 'axios';\nimport { type QueryFunctionContext, useQuery } from '@tanstack/react-query';\nimport { type Get360InventoryResponse, type Get360InventoryData } from '../interface';\nimport { format360Url } from '../utils/format360Url';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\n\ntype Inventory360Options = {\n locale: Locale;\n};\n\nconst get360Inventory = async (\n { queryKey }: QueryFunctionContext>,\n axiosInstance?: AxiosInstance\n) => {\n const [, options] = queryKey;\n const { locale } = options;\n\n const response = await getAxios(axiosInstance).get(\n format360Url('/inventory.json', locale),\n {\n headers: {\n Accept: 'application/json, text/plain, */*',\n },\n }\n );\n\n return selector(response.data);\n};\n\nconst selector = (data: Get360InventoryResponse): Get360InventoryData => data;\n\nconst get360InventoryKey = (options: Inventory360Options) => ['360inventory', options] as const;\n\nexport const use360Inventory = () => {\n const locale = useLocale();\n const threeSixtyImagesEnabled = useFeatureFlag('THREE_SIXTY_ENABLED') === 'true';\n const isGCPThreeSixtyImageEnabled = useMonetateDecisionFlag('gcpThreeSixtyImageEnabled');\n\n const options = {\n locale,\n };\n\n return useQuery({\n queryKey: get360InventoryKey(options),\n queryFn: get360Inventory,\n enabled: threeSixtyImagesEnabled && !isGCPThreeSixtyImageEnabled,\n });\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { getAxios } from '@/lib/axios';\nimport { type AxiosInstance } from 'axios';\nimport { type QueryClient, type QueryFunctionContext, useQuery } from '@tanstack/react-query';\nimport { type Video, type VideosResponse } from '../interface';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\n\nconst URL = `${requestBaseURL}/ecomm/b2c/v1/tvpage/info`;\n\nconst selector = (data: VideosResponse, skuId: string): Video[] => {\n if (data[skuId]) {\n return data[skuId].slice().sort((a, b) => a.sortOrder - b.sortOrder);\n }\n\n return [];\n};\n\nconst getProductVideos = async (\n { queryKey }: QueryFunctionContext>,\n axiosInstance?: AxiosInstance\n) => {\n const [, { skuId }] = queryKey;\n\n if (skuId == null) {\n throw new Error(\"An 'skuId' wasn't passed\");\n }\n\n const response = await getAxios(axiosInstance).get(`${URL}?skuId=${skuId}`);\n\n return selector(response.data, skuId);\n};\n\nexport const getProductVideosKey = (skuId: string | null) => ['productVideos', { skuId }] as const;\n\nexport const useProductVideos = (skuId: string | null, enabled?: boolean) => {\n const locale = useLocale();\n return useQuery({\n enabled: Boolean(skuId) && locale === countryCodes.us && enabled,\n queryKey: getProductVideosKey(skuId),\n queryFn: getProductVideos,\n });\n};\n\nexport const prefetchProductVideos = async (\n queryClient: QueryClient,\n skuId: string | null,\n axiosInstance: AxiosInstance\n) => {\n return queryClient.prefetchQuery({\n queryKey: getProductVideosKey(skuId),\n queryFn: (context: QueryFunctionContext>) =>\n getProductVideos(context, axiosInstance),\n });\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { requestBaseURLGCPExtOrInt } from '@/config/serviceAPI';\nimport { getAxios } from '@/lib/axios';\nimport { type AxiosInstance } from 'axios';\nimport { type QueryClient, type QueryFunctionContext, useQuery } from '@tanstack/react-query';\nimport { type GcpVideo } from '../interface';\n\nconst GCP_URL = `${requestBaseURLGCPExtOrInt}/sls/b2c/product-discovery-product-data/v1/product-videos`;\n\nconst getGcpProductVideos = async (\n { queryKey }: QueryFunctionContext>,\n axiosInstance?: AxiosInstance\n) => {\n const [, { skuId }] = queryKey;\n\n if (skuId == null) {\n throw new Error(\"An 'skuId' wasn't passed\");\n }\n\n const response = await getAxios(axiosInstance).get(\n `${GCP_URL}?country=USA&skuId=${skuId}`,\n { withCredentials: false }\n );\n\n return response.data;\n};\n\nconst gcpProductVideosKeys = ({ skuId }: { skuId: string }) =>\n ['gcpProductVideos', { skuId }] as const;\n\nexport const useGcpProductVideos = ({\n skuId,\n enabled = false,\n}: {\n skuId: string;\n enabled?: boolean;\n}) => {\n return useQuery({\n enabled: enabled,\n queryKey: gcpProductVideosKeys({ skuId }),\n queryFn: getGcpProductVideos,\n });\n};\n\nexport const prefetchGcpProductVideos = async ({\n queryClient,\n skuId,\n axiosInstance,\n}: {\n queryClient: QueryClient;\n skuId: string;\n axiosInstance: AxiosInstance;\n}) => {\n return queryClient.prefetchQuery({\n queryKey: gcpProductVideosKeys({ skuId }),\n queryFn: (context: QueryFunctionContext>) =>\n getGcpProductVideos(context, axiosInstance),\n });\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport type { CarouselItem } from '@/components/Carousel/ThumbnailComponent/types';\nimport type { Locale } from '@/types/i18n';\nimport { type ThreeSixtyInventoryItem } from '../../../interface';\nimport { format360Url } from '../../../utils/format360Url';\n\nexport const map360CarouselItem = (\n locale: Locale,\n threeSixtyInventoryItem?: ThreeSixtyInventoryItem,\n alt?: string\n): CarouselItem[] => {\n if (threeSixtyInventoryItem?.thumbnail) {\n const { thumbnail, uri: threeSixtyImagesUrl } = threeSixtyInventoryItem || {};\n return [\n {\n alt,\n enlargedMediaUrl: format360Url(thumbnail, locale, 640),\n thumbnail: format360Url(thumbnail, locale, 70),\n type: 'spin360',\n threeSixtyImagesUrl,\n },\n ];\n }\n return [];\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport NextImage from '@/components/NextImage';\nimport { Link, Text, View } from '@az/starc-ui';\nimport styles from './YMMESpecificInstallVideoBanner.module.scss';\nimport { type VideoResponseModel } from '@/api/types/products-types';\n\nconst images = {\n bannerIcon: {\n src: 'https://www.autozone.com/cdn/images/B2C/US/media/icons/D_Banner_Icon.svg',\n },\n bannerImage: {\n src: 'https://www.autozone.com/cdn/images/B2C/US/media/icons/D_Banner_Image.jpg',\n },\n};\n\ntype Props = {\n data?: VideoResponseModel;\n onClick: () => void;\n};\n\nexport function YMMESpecificInstallVideoBanner({ data, onClick }: Props) {\n const location = data?.locations?.[data?.sylvaniaVideos[0].location] ?? '';\n\n const vehicle = `${data?.vehicleYear} ${data?.vehicleMake} ${data?.vehicleModel}`;\n\n return (\n \n
\n \n \n \n \n \n Install {location.toLowerCase()} on your {vehicle}\n \n \n See full video series covering all vehicle locations\n \n \n \n \n \n
\n \n );\n}\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getAxios } from '@/lib/axios';\nimport { requestBaseURLGCPExtOrInt } from '@/config/serviceAPI';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { type AxiosInstance } from 'axios';\nimport { type Gcp360ImageOptions, type Gcp360ImageResponse } from '../interface';\nimport { type QueryClient } from '@tanstack/react-query';\n\nconst GCP_URL = `${requestBaseURLGCPExtOrInt}/sls/b2c/product-discovery-product-data/v1/product-360-images`;\n\nconst getGcp360Image = async (\n options: Gcp360ImageOptions,\n axiosInstance?: AxiosInstance\n): Promise => {\n const { country, skuIds } = options;\n const response = await getAxios(axiosInstance).get(GCP_URL, {\n params: {\n country,\n skuIds,\n },\n withCredentials: false,\n });\n return response.data;\n};\n\nconst { useData: use360ImageInfo, prefetch: prefetch360ImageInfo } = createQuery<\n Gcp360ImageResponse[],\n Gcp360ImageOptions\n>('three-sixty-image', async (options, axiosInstance) =>\n getGcp360Image({ ...options }, axiosInstance)\n);\n\nexport const useGetGcp360Image = (props: { country: string; skuIds: string; enabled: boolean }) => {\n const { country, skuIds, enabled } = props;\n const options = { country, skuIds, enabled };\n return use360ImageInfo(options);\n};\n\nexport const prefetchGcp360Image = async (\n axiosInstance: AxiosInstance,\n queryClient: QueryClient,\n options: Gcp360ImageOptions\n) => {\n return prefetch360ImageInfo(queryClient, options, axiosInstance);\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type AxiosInstance } from 'axios';\nimport {\n type GCPProductVehicleImageResponse,\n type GCPProductVehicleImageOptions,\n} from '../interface';\nimport { getAxios } from '@/lib/axios';\nimport { requestBaseURLGCPExtOrInt } from '@/config/serviceAPI';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { type QueryClient } from '@tanstack/react-query';\n\nconst URL = `${requestBaseURLGCPExtOrInt}/sls/b2c/product-discovery-product-data/v1/product-vehicle-image`;\n\nconst getGcpProductVehicleImage = async (\n options: GCPProductVehicleImageOptions,\n axiosInstance?: AxiosInstance\n): Promise => {\n const response = await getAxios(axiosInstance).get(URL, {\n params: options,\n withCredentials: false,\n });\n return response.data;\n};\n\nconst { useData: useProductVehicleImageInfo, prefetch: prefetchProductVehicleImageInfo } =\n createQuery(\n 'product-vehicle-images',\n async (options, axiosInstance) => getGcpProductVehicleImage({ ...options }, axiosInstance)\n );\n\nexport const useGetGcpProductVehicleImage = (props: {\n partCode: string;\n country: string;\n vehicleId: string;\n enabled: boolean;\n}) => {\n const { partCode, country, vehicleId, enabled } = props;\n const options = {\n partCode,\n country,\n vehicleId,\n enabled,\n };\n\n return useProductVehicleImageInfo(options);\n};\n\nexport const prefetchProductVehicleImage = async (\n axiosInstance: AxiosInstance,\n queryClient: QueryClient,\n options: GCPProductVehicleImageOptions\n) => {\n return prefetchProductVehicleImageInfo(queryClient, options, axiosInstance);\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { MAX_VISIBLE_THUMBNAILS } from '@/components/Carousel/constants';\nimport ThumbnailComponent from '@/components/Carousel/ThumbnailComponent';\nimport type {\n CarouselItem,\n CarouselItemTypes,\n} from '@/components/Carousel/ThumbnailComponent/types';\nimport { eventConstants } from '@/constants/event';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport React, { useRef, useState, Suspense, useCallback } from 'react';\nimport { use360Inventory } from '../../api/get360Inventory';\nimport { useProductVideos } from '../../api/getProductVideos';\nimport { useGcpProductVideos } from '../../api/getGcpProductVideos';\nimport { CarouselComponent } from './CarouselComponent';\nimport styles from './styles.module.scss';\nimport { map360CarouselItem } from './utils/map360CarouselItem';\nimport { type ProductModel } from '@/api/types/products-types';\nimport ProgressModal from '@/components/AZCustomComponent/ProgressModal';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport dynamic from 'next/dynamic';\nimport { YMMESpecificInstallVideoBanner } from '@/components/ProductDetail/ProductAvailabilityInfo/YMMESpecificInstallVideoBanner/YMMESpecificInstallVideoBanner';\nimport { useSylvaniaVideos } from '@/features/product/api/getSylvaniaVideos';\nimport { trackImageInteractionPDP } from '../../utils/analytics/trackImageInteractionPDP';\nimport { ConfigurableSkuBadge } from '@/features/configurableSku/components/ConfigurableSkuBadge';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { useGetGcp360Image } from '../../api/getGcp360Image';\nimport { getCountryFromLocale } from '@/utils/getCountryFromLocale';\nimport { useGetGcpProductVehicleImage } from '../../api/getGcpProductVehicleImage';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\nimport { useContentStackDefaultPDPContent } from '../../api/getContentStackDefaultProductContent';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport { pageTypes } from '@/utils/analytics/legacyUtils/pageTypes';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { analyticsDynamicPageName } from '@/utils/analytics/legacyUtils/analyticsDynamicPageName';\n\nconst LazyProductImageModal = dynamic(\n () => import('./ProductImageModal').then((mod) => mod.ProductImageModal),\n {\n loading: () => ,\n }\n);\n\nconst LazyEnlargedMediaComponent = dynamic(() =>\n import('./EnlargedMediaComponent').then((mod) => mod.EnlargedMediaComponent)\n);\n\ntype Props = {\n data: ProductModel;\n labels: Record;\n};\n\nconst labelMap = {\n label_CategoryPage_body_ImageNotAvailable: 'label_CategoryPage_body_ImageNotAvailable',\n hoverToZoomLabel: 'label_hover_over_image_to_zoom',\n tapToZoomLabel: 'Label_tap_image_to_zoom',\n tapImage360Label: 'label_tap_image_to_view_360',\n dragImageLabel: 'label_drag_image_to_view_all_slides',\n};\n\nexport const ProductCarousel = (props: Props) => {\n const {\n itemDescription,\n itemMediaUrl,\n itemId,\n originalPartTypeId,\n location,\n cmsContentPath,\n taxonomyUrl,\n partNumber,\n } = props.data;\n const isMobileDevice = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n const labels = useLabels(labelMap);\n const locale = useLocale();\n const country = getCountryFromLocale(locale);\n const initializedImages = useRef(0);\n const [modalTab, setModalTab] = useState('images');\n const [pinchToZoomImagesInitialized, setPinchToZoomImagesInitialized] = useState(false);\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const { hoverToZoomLabel, tapToZoomLabel, tapImage360Label, dragImageLabel } = labels;\n const [selectedModalThumbnailIndex, setSelectedModalThumbnailIndex] = useState(0);\n const [selectedPDPThumbnailIndex, setSelectedPDPThumbnailIndex] = useState(0);\n const [aprimoVideoTag, setAprimoVideoTag] = useState(null);\n const enlargedImages = itemMediaUrl?.enlargedItemImageUrls || [];\n const imageThumbnails = itemMediaUrl?.thumbnailItemImageUrls || [];\n const imageData = enlargedImages.map(mapToImageObject);\n const isGCPThreeSixtyImageEnabled = useMonetateDecisionFlag('gcpThreeSixtyImageEnabled');\n const { data: threeSixtyInventory } = use360Inventory();\n const { data: threeSixtyImage } = useGetGcp360Image({\n country,\n skuIds: itemId,\n enabled: isGCPThreeSixtyImageEnabled,\n });\n const urls = !!threeSixtyImage?.[0]?.urls\n ? !!threeSixtyImage?.[0]?.thumbnail\n ? [threeSixtyImage?.[0]?.thumbnail, ...threeSixtyImage?.[0]?.urls]\n : threeSixtyImage?.[0]?.urls\n : undefined;\n const { skus } = threeSixtyInventory || {};\n const threeSixtySkuItem = itemId !== null ? skus?.[itemId] : undefined;\n const threeSixtyImageThumbnails = map360CarouselItem(\n locale,\n isGCPThreeSixtyImageEnabled\n ? { thumbnail: threeSixtyImage?.[0]?.thumbnail ?? '' }\n : threeSixtySkuItem,\n itemDescription\n );\n\n const taxonomyPath = cmsContentPath ?? taxonomyUrl;\n const { data: defaultPDPContent } = useContentStackDefaultPDPContent({\n enabled: !!taxonomyPath,\n taxonomyPath,\n });\n const partTypeHasVehicleImages =\n defaultPDPContent?.partTypesWithVehicleImages?.includes(originalPartTypeId ?? '') ?? false;\n const vehicleData = usePreferredVehicle();\n const isProductVehicleImageEnabled =\n useFeatureFlag('IS_PRODUCT_VEHICLE_IMAGE_ENABLED') === 'true';\n const { data: productVehicleImage } = useGetGcpProductVehicleImage({\n partCode: originalPartTypeId ?? '',\n country,\n vehicleId: vehicleData?.catalogVehicleId ?? '',\n enabled: isProductVehicleImageEnabled && !!vehicleData && partTypeHasVehicleImages,\n });\n\n const installVideosEnabled = useFeatureFlag('IS_YMME_INSTALL_VIDEOS_ENABLED') === 'true';\n const { data: sylvaniaData } = useSylvaniaVideos({\n enabled: installVideosEnabled,\n productId: props.data.itemId,\n });\n\n const installationGuideEnabled = Boolean(installVideosEnabled && !!sylvaniaData);\n\n const isGcpUrlEnabled = useMonetateDecisionFlag('pdGcpUrlEnabled');\n const gcpProductsVideosResult = useGcpProductVideos({ skuId: itemId, enabled: isGcpUrlEnabled });\n\n // TODO: remove old product videos api and logic once GCP flag isn't needed\n const videosResult = useProductVideos(itemId, !isGcpUrlEnabled);\n const aprimoPDPVideosEnabled = useFeatureFlag('APRIMO_PDP_VIDEO_ENABLED') === 'true';\n\n const videoThumbnails: CarouselItem[] =\n (isGcpUrlEnabled\n ? gcpProductsVideosResult.data?.map(({ thumbnailURL, videoURL, title }) => ({\n thumbnail: thumbnailURL,\n enlargedMediaUrl: videoURL,\n title,\n type: 'video' as const,\n }))\n : videosResult.data?.map(({ asset: { thumbnailUrl }, id, title }) => ({\n thumbnail: thumbnailUrl || '',\n enlargedMediaUrl: aprimoPDPVideosEnabled\n ? id\n : `//www.autozone.com/videos/tvpembed/${id}?autoplay=0`,\n title,\n type: 'video' as const,\n }))) ?? [];\n\n const videoThumbnailsExist = !!videoThumbnails.length;\n const allThumbnails = [...imageData, ...videoThumbnails, ...threeSixtyImageThumbnails];\n\n function mapToImageObject(enlargedMediaUrl: string, index: number): CarouselItem {\n return {\n alt: itemDescription,\n enlargedMediaUrl,\n mediumImageURL: index === 0 ? getMediumImageURL(enlargedMediaUrl) : undefined,\n thumbnail: imageThumbnails[index],\n type: 'image',\n };\n }\n\n function getMediumImageURL(imageURL: string | undefined) {\n if (\n imageURL &&\n /^https:\\/\\/contentinfo\\.autozone\\.com\\/znetcs\\/product-info\\/([^/]+\\/){4}image\\/\\d+\\/$/.test(\n imageURL\n )\n ) {\n return imageURL.replace(/\\/\\d+\\/$/, '/8/');\n }\n\n return imageURL;\n }\n\n const onPinchToZoomImageInit = () => {\n initializedImages.current = initializedImages.current + 1;\n if (initializedImages.current === enlargedImages.length) {\n //avoid jumpy centering on mount of pinch to zoom images\n setTimeout(() => {\n setPinchToZoomImagesInitialized(true);\n }, 100);\n }\n };\n\n const [modalOpen, setModalOpen] = useState(false);\n const [enlargedMediaData, setEnlargedMediaData] = useState(\n allThumbnails[0] ? allThumbnails[0] : null\n );\n const enlargedMedia = enlargedMediaData ?? (allThumbnails[0] ? allThumbnails[0] : undefined);\n const enlargedMediaIsImage = enlargedMedia?.type === 'image';\n const enlargedMediaIs360 = enlargedMedia?.type === 'spin360';\n const imageLabel = isDesktop ? hoverToZoomLabel : tapToZoomLabel;\n const image360Label = !isMobileDevice ? dragImageLabel : tapImage360Label;\n const imageCaption = enlargedMediaIsImage ? imageLabel : enlargedMediaIs360 ? image360Label : '';\n\n const additionalThumbnails = [\n ...(videoThumbnailsExist ? [videoThumbnails[0]] : []),\n ...threeSixtyImageThumbnails,\n ];\n const imageCutOff = MAX_VISIBLE_THUMBNAILS - additionalThumbnails.length - 1; //one thumbnail for see more button + any video or threesixty images that need to show before see more button\n\n const imageThumbnailLength = imageThumbnails.length;\n const additionalThumbnailLength = additionalThumbnails.length;\n const swapLastPDPImageWithVideo =\n !isMobileDevice && imageThumbnailLength > imageCutOff && additionalThumbnailLength; //if the number of images + videos or 360 images will cause the see more button to show up, replace the last image with the first video\n\n const pdpThumbnails = swapLastPDPImageWithVideo\n ? [\n ...allThumbnails.slice(0, imageCutOff),\n ...additionalThumbnails,\n ...allThumbnails.slice(imageCutOff, MAX_VISIBLE_THUMBNAILS - 1),\n ]\n : allThumbnails;\n\n const findThumbnailIndex = (thumbnails: CarouselItem[], thumbnailSrc?: string) => {\n return thumbnails.findIndex(\n (thumbnailObject: CarouselItem) => thumbnailObject.thumbnail === thumbnailSrc\n );\n };\n\n const productDetailsQuery = useProductDetails();\n const pdpBreadcrumb = productDetailsQuery?.data?.product?.breadCrumbs;\n const pageTypeData = 'pdp';\n const pageName = analyticsDynamicPageName(pdpBreadcrumb, pageTypeData);\n const handleModalTabChange = (tab: string) => {\n setModalTab(tab);\n let selectedCarouselItem;\n if (tab === '360 Image') {\n selectedCarouselItem = threeSixtyImageThumbnails[0];\n } else if (tab === 'Videos') {\n selectedCarouselItem = videoThumbnails[0];\n } else if (tab === 'Port Locator') {\n const productVehicleImageThumbnail =\n productVehicleImage?.images.map(({ imageURL }, index) =>\n mapToImageObject(imageURL, index)\n ) ?? [];\n selectedCarouselItem = productVehicleImageThumbnail[0];\n if (isProductVehicleImageEnabled && !!vehicleData && partTypeHasVehicleImages) {\n clickTrack({\n customLinkName: 'Vehcile Specific Image View',\n eventType: 'vehicleSpecificImageView',\n pageName: `az:${pageName}-${partNumber}`,\n pageType: pageTypes.pdp,\n siteSection: 'catalog',\n productId: partNumber,\n });\n }\n } else {\n selectedCarouselItem = imageData[0];\n }\n showExpandedImageModal(0, selectedCarouselItem);\n };\n\n const selectModalTab = (type?: CarouselItemTypes) => {\n if (type === 'spin360') {\n setModalTab('360 Image');\n return;\n } else if (type === 'video') {\n setModalTab('Videos');\n return;\n }\n setModalTab('Images');\n };\n\n const showExpandedImageModal = (index: number, carouselItem: CarouselItem) => {\n const { thumbnail } = carouselItem;\n const pdpIndex: number = findThumbnailIndex(pdpThumbnails, thumbnail);\n setSelectedModalThumbnailIndex(index);\n setSelectedPDPThumbnailIndex(pdpIndex);\n setEnlargedMediaData(carouselItem);\n };\n\n const showExpandedImagePDP = (index: number, carouselItem: CarouselItem) => {\n const { type, thumbnail } = carouselItem;\n const dataSet = type === 'image' ? imageData : videoThumbnails;\n const modalIndex: number = findThumbnailIndex(dataSet, thumbnail);\n selectModalTab(carouselItem.type);\n setSelectedPDPThumbnailIndex(index);\n setSelectedModalThumbnailIndex(modalIndex);\n setEnlargedMediaData(carouselItem);\n };\n\n const handleClose = () => {\n setPinchToZoomImagesInitialized(false);\n initializedImages.current = 0;\n setModalOpen(false);\n };\n\n const handleOnKeyDown = useCallback((event: React.KeyboardEvent) => {\n if (\n event.keyCode === eventConstants.enterKeyCode &&\n event.key === eventConstants.enterKeyType\n ) {\n return setModalOpen(true);\n }\n }, []);\n\n const handleOpenCarouselModal = useCallback(() => {\n setModalOpen(true);\n\n if (aprimoVideoTag) {\n aprimoVideoTag.pause();\n }\n }, [aprimoVideoTag]);\n\n const handleThumbnailClick = (item: CarouselItem) => {\n const index = findThumbnailIndex(pdpThumbnails, item.thumbnail);\n\n trackImageInteractionPDP(`PDP|${index + 1}`, `${index + 1}`);\n //open modal on desktop or for 360 thumbnails on tablet\n const callback = isDesktop\n ? handleOpenCarouselModal\n : (thumbnail: CarouselItem) => {\n thumbnail.type === 'spin360' && handleOpenCarouselModal();\n };\n callback(item);\n };\n\n const handleSeeMoreClick = () => {\n handleOpenCarouselModal();\n trackImageInteractionPDP('See More Images-PDP');\n };\n\n if (allThumbnails.length > 0) {\n return (\n
\n {modalOpen ? (\n }>\n \n \n ) : null}\n {Boolean(props.data.vehicleFitFlag) &&\n props.data.lineCode === 'SYL' &&\n installationGuideEnabled && (\n {\n setModalTab('Installation Guide');\n handleOpenCarouselModal();\n }}\n />\n )}\n
\n \n {!isMobileDevice ? (\n
\n
\n {props.data.configurableSkuFlag && }\n
\n \n
\n ) : null}\n
\n
\n {props.data.configurableSkuFlag && }\n \n
\n
\n );\n }\n\n return
{labels.label_CategoryPage_body_ImageNotAvailable}
;\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type ProductModel } from '@/api/types/products-types';\nimport { type ProductSkuDetails } from '@/features/product';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\n\nexport const trackCustomizeSkuStart = (\n productDetails: ProductModel,\n skuDetailsData: ProductSkuDetails,\n fulfillmentID: string,\n productAvailableQuantityList: string[] | string\n) => {\n const { pageName = '', pageType = '', siteSection = '' } = window.utag_data ?? {};\n\n clickTrack({\n customLinkName: 'Customize Your Item',\n eventType: 'Configurable SKU Start',\n originalPartTypeIdList: [productDetails.originalPartTypeId],\n pageName,\n pageType,\n siteSection,\n productAvailableQuantityList: Array.isArray(productAvailableQuantityList)\n ? productAvailableQuantityList\n : [productAvailableQuantityList],\n productBrandList: [productDetails.brandName ?? ''],\n productFulfillmentTypeList: [`${fulfillmentID}`],\n productIdList: [skuDetailsData.skuPricingAndAvailability.skuId],\n productPartNumberList: [productDetails.partNumber],\n productPriceList: [`${skuDetailsData.skuPricingAndAvailability.lowestPrice}`],\n productRecommendationTypeList: ['AutoZone'],\n productRepositoryIdList: [productDetails.ecommProductId],\n productRequestedQuantityList: ['1'],\n });\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { analyticsDataLayerVariable } from '@/utils/analytics/analyticsDataLayerVariable';\nimport { invalidDataCheck } from '@/utils/analytics/invalidDataCheck';\n\nexport function analyticsPDPReviewRating(rating: string, reviewCount: string) {\n const data = {\n productStarRating: invalidDataCheck(rating),\n productReviewCount: reviewCount ? reviewCount.replace(/[()]/g, '').toString() : '0',\n };\n analyticsDataLayerVariable(data);\n}\n","/**\n * Copyright 2019-2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport { Grid } from '../../Grid';\nimport styles from './styles.module.scss';\n\ntype Props = {\n leftContent?: React.ReactNode;\n rightContent?: React.ReactNode;\n};\n\nexport default function ProductAvailabilityInfoSkeleton({ leftContent, rightContent }: Props) {\n return (\n
\n \n \n {leftContent}\n \n \n {rightContent}\n \n \n
\n );\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport styles from './styles.module.scss';\nimport cx from 'classnames';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport ClearanceBadgeWrapper from '@/components/AZCustomComponent/ClearanceBadge';\nimport StrikeThroughPriceWrapper from '@/components/AZCustomComponent/StrikethroughPricing';\nimport { useLocale } from '@/hooks/useLocale';\nimport { Grid } from '@/components/Grid';\nimport { countryCodes } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport type { SkuPricingAndAvailabilityFromAPI } from '@/types/availability';\n\ntype CounterData = {\n itemQuantity: number;\n orderType: string;\n eligibleForNextDay: boolean | undefined;\n productInfo: {\n skuId: string;\n };\n unitAmount: number;\n lineItemPriceInfo: {\n unitPrice: number;\n };\n clearanceItem: boolean | undefined;\n strikethroughPrice: string | number | null | undefined;\n fulfillmentId: number;\n};\n\ntype PdpPriceProps = {\n dealAvailable: boolean;\n dealDrawerPDPEnabled: boolean;\n priceLabel: string;\n data: CounterData;\n count: number;\n corePriceInfoPopover: React.ReactNode;\n priceInfoPopover: React.ReactNode;\n saveNowOrRebateBadges: React.ReactNode;\n skuPricingAndAvailability: SkuPricingAndAvailabilityFromAPI | undefined;\n discountedPrice: string | null;\n updatedDiscountedPrice: number;\n retailPriceInt: number;\n};\n\nconst PdpPrice = ({\n dealAvailable,\n dealDrawerPDPEnabled,\n priceLabel,\n data,\n corePriceInfoPopover,\n priceInfoPopover,\n saveNowOrRebateBadges,\n skuPricingAndAvailability,\n count,\n discountedPrice,\n updatedDiscountedPrice,\n retailPriceInt,\n}: PdpPriceProps) => {\n const locale = useLocale();\n const strikeThroughPricingEnabled = useFeatureFlag('SHOW_STRIKE_THROUGH_PRICING') === 'true';\n\n const totalCorePrice = (skuPricingAndAvailability?.corePrice ?? 0) * count;\n\n const showCartDiscountCaption = () => {\n if (locale === countryCodes.mx) {\n return dealAvailable && !strikeThroughPricingEnabled;\n } else {\n return dealAvailable;\n }\n };\n\n return (\n
\n {totalCorePrice ? (\n <>\n {dealAvailable && (\n \n {!dealDrawerPDPEnabled && priceLabel}\n
\n )}\n
\n {data.clearanceItem && (\n
\n \n
\n )}\n {strikeThroughPricingEnabled && discountedPrice && (\n \n )}\n {corePriceInfoPopover}\n
\n \n ) : (\n <>\n \n {showCartDiscountCaption() && (\n \n
\n {!dealDrawerPDPEnabled && priceLabel}\n
\n
\n )}\n \n {priceInfoPopover}\n \n \n {data.clearanceItem && }\n \n
\n {saveNowOrRebateBadges !== null && data.clearanceItem && (\n
\n )}\n \n )}\n {saveNowOrRebateBadges}\n
\n );\n};\n\nexport default PdpPrice;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useMemo } from 'react';\n\ntype Props = {\n isFetchingLocation: boolean;\n retailPriceInt: number;\n updatedDiscountedPrice: number;\n configurableSku: boolean;\n};\n\nexport const useShowSkeletonOrNoPrice = ({\n isFetchingLocation,\n retailPriceInt,\n updatedDiscountedPrice,\n configurableSku,\n}: Props) => {\n const { isLoading, isNoPrice } = useMemo(() => {\n if (isFetchingLocation || retailPriceInt > 1 || updatedDiscountedPrice > 1) {\n return {\n isLoading: false,\n isNoPrice: false,\n };\n } else if (\n !isFetchingLocation &&\n ((!configurableSku && !retailPriceInt) || (configurableSku && !updatedDiscountedPrice))\n ) {\n return {\n isLoading: false,\n isNoPrice: true,\n };\n }\n\n return {\n isLoading: true,\n isNoPrice: false,\n };\n }, [retailPriceInt, updatedDiscountedPrice, isFetchingLocation, configurableSku]);\n\n return { isLoading, isNoPrice };\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type ReduxState } from '@/types';\nimport { useSelector } from 'react-redux';\nimport Skeleton from '@/components/Skeleton/Skeleton';\nimport Price from '@/components/AZCustomComponent/Price';\nimport cx from 'classnames';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport StrikeThroughPriceWrapper from '@/components/AZCustomComponent/StrikethroughPricing';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport styles from './styles.module.scss';\nimport { Label } from '@/features/i18n';\nimport { useLocale } from '@/hooks/useLocale';\nimport type { Locale } from '@/types/i18n';\nimport { countryCodes } from '@/constants/locale';\nimport { useShowSkeletonOrNoPrice } from './useShowSkeletonOrNoPrice';\n\ntype Props = {\n discountedPrice: string | null;\n updatedDiscountedPrice: number;\n configurableSku: boolean;\n retailPrice: string[];\n retailPriceInt: number;\n itemQuantity: number;\n};\n\nconst PriceInfoPopover = ({\n discountedPrice,\n updatedDiscountedPrice,\n configurableSku,\n retailPrice,\n retailPriceInt,\n itemQuantity,\n}: Props) => {\n const { isFetchingLocation } = useSelector(({ appData }: ReduxState) => appData);\n const strikeThroughPricingEnabled = useFeatureFlag('SHOW_STRIKE_THROUGH_PRICING') === 'true';\n const locale = useLocale();\n const { isLoading, isNoPrice } = useShowSkeletonOrNoPrice({\n isFetchingLocation,\n retailPriceInt,\n updatedDiscountedPrice,\n configurableSku,\n });\n const isStrikethrough = discountedPrice && parseFloat(discountedPrice) !== retailPriceInt;\n\n if (isNoPrice) {\n return ;\n }\n\n return isLoading ? (\n getSkeletonOrNoPrice(locale)\n ) : (\n <>\n {strikeThroughPricingEnabled && isStrikethrough ? (\n
\n
\n \n
\n
\n \n
\n
\n ) : (\n
\n
\n \n
\n
\n )}\n \n );\n};\n\nconst getSkeletonOrNoPrice = (locale: Locale) => {\n if (locale === countryCodes.mx) {\n return ;\n } else {\n return ;\n }\n};\n\nconst NoPrice = () => (\n
\n \n \n
\n);\n\nexport default PriceInfoPopover;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useSelector } from 'react-redux';\nimport { type ReduxState } from '@/types';\nimport Skeleton from '@/components/Skeleton/Skeleton';\nimport Price, { type PriceType } from '@/components/AZCustomComponent/Price';\nimport InfoToolTip from '@/components/AZCustomComponent/InfoToolTip';\nimport cx from 'classnames';\nimport styles from './styles.module.scss';\nimport { Label } from '@/features/i18n';\nimport { useLabels } from '@/hooks/useLabels';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport { formatPrice } from '@/utils/validator/formatPrice';\n\nconst labelMap = {\n lblRegularPrice: 'label_regular_price',\n lblOrderSummaryCoreDeposit: 'label_cart_orderSummary_coreDeposit',\n lblRefundable: 'label_refundable',\n labelRefundableCoreCharge: 'label_refundable_core_charge',\n lbllineItemWhatIsIt: 'label_cart_lineItem_WhatIsIt',\n lblCoreDetails: 'pagecontent_cart_corePopup_CoreDetails',\n labelRegularPricePlusCore: 'label_regular_price_plus_core',\n};\n\ntype Props = {\n totalCorePrice: number;\n isBopusMexicoStoreEnabled: boolean;\n totalPrice: string;\n dealPrice: string[];\n};\n\nconst CorePriceInfoPopOver = ({\n totalCorePrice,\n isBopusMexicoStoreEnabled,\n totalPrice,\n dealPrice,\n}: Props) => {\n const labels = useLabels(labelMap);\n const { isFetchingLocation } = useSelector(({ appData }: ReduxState) => appData);\n const getCorePrice = (corePrice: string) => {\n const formattedPrice = formatPrice(Number(corePrice));\n if (formattedPrice !== 0 && formattedPrice !== null) {\n return formattedPrice.split('.');\n }\n };\n\n const havePrice = !!dealPrice.reduce((p, c) => p + Number(c || '0'), 0);\n\n const coreRefundLabel = isBopusMexicoStoreEnabled\n ? `${labels.lblOrderSummaryCoreDeposit}${' '}\n${labels.lblRefundable}${' '}`\n : labels.labelRefundableCoreCharge;\n\n if (!isFetchingLocation && !havePrice) {\n return ;\n }\n\n return (\n
\n
\n
{labels.lblRegularPrice}
\n \n
\n
\n
\n
\n {coreRefundLabel}\n \n
\n \n
\n
\n

{labels.labelRegularPricePlusCore}

\n \n
\n
\n
\n );\n};\n\nexport default CorePriceInfoPopOver;\n\nconst PriceOrSkeleton = ({\n isFetchingLocation,\n dealPrice,\n showPlus,\n priceType,\n type = undefined,\n}: {\n isFetchingLocation: boolean;\n dealPrice: string[] | null;\n showPlus: boolean;\n priceType: PriceType;\n type?: string | undefined;\n}) => {\n return isFetchingLocation ? (\n \n ) : (\n \n );\n};\n\nconst NoPrice = () => (\n
\n \n \n
\n);\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\ntype Props = {\n wasRetailPrice?: string | number | undefined;\n retailPriceInt: number;\n discountedPrice: string | null;\n count: number;\n staticPrice: number;\n dealPrice: string[];\n};\n\nexport const getPopoverPrices = ({\n wasRetailPrice,\n retailPriceInt,\n discountedPrice,\n count,\n staticPrice,\n dealPrice,\n}: Props) => {\n const updatedDiscountedPrice = discountedPrice\n ? parseFloat(discountedPrice) * (count === 0 ? 1 : count)\n : retailPriceInt;\n\n const updatingStaticPrice = staticPrice * (count === 0 ? 1 : count);\n const strikethroughPrice = wasRetailPrice;\n const strikethroughPriceInt = parseInt((strikethroughPrice as string) ?? undefined);\n\n const currentPrice = discountedPrice ? updatedDiscountedPrice : updatingStaticPrice;\n const wasPrice = strikethroughPrice ? strikethroughPrice : retailPriceInt.toFixed(2);\n\n const updatingRetailPrice = strikethroughPriceInt\n ? wasPrice && parseFloat(wasPrice as string) * (count === 0 ? 1 : count)\n : wasPrice;\n\n const counterPrice = discountedPrice ? parseFloat(discountedPrice) : staticPrice;\n\n const [dollars, cents] = `${updatingRetailPrice}`.split('.');\n const discountPriceArr = `${updatedDiscountedPrice}`.split('.');\n const popoverDealPrice = discountedPrice ? discountPriceArr : dealPrice;\n\n return {\n popoverDiscountedPrice: currentPrice,\n popoverUpdatedPrice: updatedDiscountedPrice,\n popoverRetailPrice: [dollars, cents],\n popoverRetailPriceInt: parseFloat(`${dollars}.${cents}`),\n counterPrice,\n popoverDealPrice,\n };\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const getDealPrice = (\n lowestPrice: number | undefined,\n strikeThroughPricingEnabled: boolean,\n discountedPrice: string | null,\n configurableSku: boolean,\n retailPrice: string[]\n): string[] => {\n const [lowestPriceDollars, lowestPriceCents] = lowestPrice?.toString().split('.') ?? [];\n const [retailPriceDollars, retailPriceCents] = retailPrice;\n\n if (strikeThroughPricingEnabled && discountedPrice) {\n let priceArray = discountedPrice.toString().split('.');\n return [priceArray[0], priceArray[1] ? priceArray[1].padEnd(2, '0') : '00'];\n } else {\n if (configurableSku) {\n return [lowestPriceDollars, lowestPriceCents ? lowestPriceCents.padEnd(2, '00') : '00'];\n } else {\n return [retailPriceDollars, retailPriceCents ? retailPriceCents.padEnd(2, '00') : '00'];\n }\n }\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport styles from './styles.module.scss';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport Skeleton from '@/components/Skeleton/Skeleton';\nimport CartCommonCounterPart from '@/components/Cart/CommonCounterPart';\nimport PdpPrice from '../PdpPrice';\nimport { countryCodes } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport type {\n AvailabilityInfoVOFromAPIV2,\n SkuPricingAndAvailabilityFromAPI,\n} from '@/types/availability';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport PriceInfoPopover from '../PriceInfoPopover';\nimport CorePriceInfoPopOver from '../CorePriceInfoPopover';\nimport CorePrice from '@/components/AZCustomComponent/CorePrice';\nimport Price from '@/components/AZCustomComponent/Price';\nimport { type ReduxState } from '@/types';\nimport { useSelector } from 'react-redux';\nimport { getPopoverPrices } from './utils/getPopoverPrices';\nimport { getDealPrice } from './utils/getDealPrice';\nimport { type ShippingType } from '@/features/fulfillment';\n\nconst labelMap = {\n lblRegularPrice: 'label_regular_price',\n lblOrderSummaryCoreDeposit: 'label_cart_orderSummary_coreDeposit',\n lblRefundable: 'label_refundable',\n labelRefundableCoreCharge: 'label_refundable_core_charge',\n lbllineItemWhatIsIt: 'label_cart_lineItem_WhatIsIt',\n lblCoreDetails: 'pagecontent_cart_corePopup_CoreDetails',\n labelRegularPricePlusCore: 'label_regular_price_plus_core',\n lblSeeSavingsInCart: 'label_see_savings_in_cart',\n lblAddToCartDiscount: 'label_ShelfPage_AddToCartDiscount',\n};\n\ntype PriceQuantityProps = {\n addedToCart: boolean;\n configurableSku: boolean;\n dealAvailable: boolean;\n discountedPrice: string | null;\n retailPrice: string[];\n availProduct?: SkuPricingAndAvailabilityFromAPI;\n staticPrice: number;\n handleQuantityChange: (\n quantity: number,\n quantityErrorMsg: boolean,\n showQuantityWarningMessage?: boolean\n ) => void;\n availabilityCheck: AvailabilityInfoVOFromAPIV2;\n sisterStoreAvailable: boolean;\n skuId: string;\n eligibleForNextDay?: boolean;\n count: number;\n shippingType: ShippingType;\n pageType: string;\n saveNowOrRebateBadges: React.ReactNode | null;\n customizeSKUs: boolean;\n fulfillmentId: number;\n setFulfillmentId: (fulfillmentId: number) => void;\n quantityInputDisabled?: boolean;\n};\n\nconst PdpPriceQuantity = (props: PriceQuantityProps) => {\n const {\n addedToCart,\n configurableSku,\n dealAvailable,\n discountedPrice,\n retailPrice,\n availProduct,\n count,\n shippingType,\n staticPrice,\n handleQuantityChange,\n availabilityCheck,\n sisterStoreAvailable,\n skuId,\n eligibleForNextDay,\n pageType,\n saveNowOrRebateBadges,\n customizeSKUs,\n fulfillmentId,\n setFulfillmentId,\n quantityInputDisabled,\n } = props;\n const dealDrawerPDPEnabled = useFeatureFlag('DEAL_DRAWER_PDP_ENABLED') === 'true';\n const strikeThroughPricingEnabled = useFeatureFlag('SHOW_STRIKE_THROUGH_PRICING') === 'true';\n const isDesktopOrTablet = useMediaQuery((theme) => theme.breakpoints.up('md'));\n const { isFetchingLocation } = useSelector(({ appData }: ReduxState) => appData);\n const labels = useLabels(labelMap);\n const locale = useLocale();\n const { data: storeData } = useStoreDetailsData();\n const isBopusEnabled = storeData?.bopusEnabled ?? false;\n const isBopusMexicoStoreEnabled = locale === countryCodes.mx && isBopusEnabled;\n const totalCorePrice = (availProduct?.corePrice ?? 0) * count;\n const isMX = locale === countryCodes.mx;\n const isBR = locale === countryCodes.ptBr;\n\n const [retailPriceDollars, retailPriceCents] = retailPrice;\n\n let retailPriceInt = parseFloat(`${retailPriceDollars}.${retailPriceCents}`);\n\n const coreBreakdownEnabled = useFeatureFlag('CORE_BREAKDOWN') === 'true';\n\n const dealPrice = getDealPrice(\n availProduct?.lowestPrice,\n strikeThroughPricingEnabled,\n discountedPrice,\n configurableSku,\n retailPrice\n );\n\n const priceLabel = addedToCart ? labels.lblSeeSavingsInCart : labels.lblAddToCartDiscount;\n\n const counterData = {\n itemQuantity: count,\n orderType: shippingType,\n eligibleForNextDay: eligibleForNextDay,\n productInfo: {\n skuId: skuId,\n },\n unitAmount: staticPrice,\n lineItemPriceInfo: {\n unitPrice: staticPrice,\n },\n clearanceItem: availProduct?.skuAvailabilityInfo?.clearanceItem,\n strikethroughPrice: availProduct?.wasRetailPrice\n ? availProduct.wasRetailPrice\n : discountedPrice,\n fulfillmentId: fulfillmentId,\n };\n\n const {\n popoverDiscountedPrice,\n popoverUpdatedPrice,\n popoverRetailPrice,\n popoverRetailPriceInt,\n counterPrice,\n popoverDealPrice,\n } = getPopoverPrices({\n wasRetailPrice: availProduct?.wasRetailPrice ?? undefined,\n retailPriceInt,\n discountedPrice,\n count,\n staticPrice,\n dealPrice,\n });\n const totalPrice = (popoverDiscountedPrice + totalCorePrice).toString();\n\n return (\n \n \n ) : (\n
\n
\n {isFetchingLocation ? (\n \n ) : (\n \n )}\n
\n \n
\n )\n }\n priceInfoPopover={\n \n }\n saveNowOrRebateBadges={saveNowOrRebateBadges}\n skuPricingAndAvailability={availProduct}\n count={count}\n />\n {!customizeSKUs && ((isMX && isBopusMexicoStoreEnabled) || (!isMX && !isBR)) && (\n \n \n
\n )}\n
\n );\n};\n\nexport default PdpPriceQuantity;\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useEffect, useState } from 'react';\nimport root from 'window-or-global';\nimport styles from './styles.module.scss';\n\nconst SeoContent = ({\n productBrand,\n catalogRefIdNew,\n}: {\n productBrand: string;\n catalogRefIdNew: string;\n}) => {\n const [href, setHref] = useState('');\n\n useEffect(() => {\n setHref(root.location?.href);\n }, []);\n\n return (\n
\n {productBrand}\n {catalogRefIdNew}\n {href}\n
\n );\n};\n\nexport default SeoContent;\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport styles from './styles.module.scss';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport cx from 'classnames';\nimport azCommonStyles from '../../../../theme/globals.module.scss';\nimport { SmartLink as Link } from '../../../../utils/smartLink';\nimport { Grid } from '../../../Grid';\nimport { ShareLinkButton } from '@/features/sharableLink';\nimport { useLabels } from '@/hooks/useLabels';\n\nconst labelMap = {\n lbl_ShopAll: 'label_Homepage_content_ShopAll',\n label_Tap_to_Navigate_to_Brand_Page: 'label_Tap_to_Navigate_to_Brand_Page',\n};\n\ntype TitleNotesProps = {\n productTitle: string;\n productBrand: string;\n brandURL: string;\n};\n\nconst PdpTitleNotes = (props: TitleNotesProps) => {\n const brandProfileEnabled: boolean = useFeatureFlag('BRAND_PROFILE_FEATURE_ENABLED') === 'true';\n const labels = useLabels(labelMap);\n const { productTitle, productBrand, brandURL } = props;\n const showShopAllLink = brandProfileEnabled && !!brandURL && !!productBrand;\n const ariaLabel = `${labels.lbl_ShopAll} ${productBrand} ${labels.label_Tap_to_Navigate_to_Brand_Page} ${productBrand}`;\n const isSharableLinksEnabled = useFeatureFlag('SHARABLE_LINKS_ENABLED') === 'true';\n\n const gridSize = {\n xs: isSharableLinksEnabled ? 11 : 12,\n sm: isSharableLinksEnabled ? 11 : 12,\n md: isSharableLinksEnabled ? 11 : 12,\n lg: isSharableLinksEnabled ? 10 : 12,\n xl: isSharableLinksEnabled ? 11 : 12,\n };\n\n return (\n \n \n {`${productTitle}`}\n {showShopAllLink && (\n \n {`${labels.lbl_ShopAll} ${productBrand}`}\n \n )}\n \n {isSharableLinksEnabled ? (\n \n \n \n ) : null}\n \n );\n};\n\nexport default PdpTitleNotes;\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport azCommonStyles from '../../../../theme/globals.module.scss';\nimport cx from 'classnames';\nimport styles from './styles.module.scss';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useSelector } from 'react-redux';\n\nconst labelMap = {\n lblNotes: 'label_CategoryPage_body_Notes',\n lblReadMore: 'hyperlink_CategoryPage_body_ReadMore',\n};\n\ntype TechNotesProps = {\n techNotes: string;\n onToggleClick: () => void;\n isSuperSku: boolean;\n};\n\nconst PdpTechNotes = (props: TechNotesProps) => {\n const { techNotes, onToggleClick } = props;\n const labels = useLabels(labelMap);\n // @ts-expect-error fix type\n const deviceType: DeviceTypes = useSelector((state) => state.appData.deviceType);\n const isBot = deviceType === 'bot';\n let notes = techNotes;\n let techNotesMoreOrLess = null;\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const truncateSize = isDesktop ? 130 : 60;\n\n if (techNotes.length > truncateSize && !isBot) {\n notes = techNotes.substring(0, truncateSize).concat('...');\n techNotesMoreOrLess = (\n
\n \n

{labels.lblReadMore}

\n \n
\n );\n }\n\n return (\n <>\n \n {labels.lblNotes}: \n {notes}\n
\n {techNotesMoreOrLess}\n \n );\n};\n\nexport default PdpTechNotes;\n","/**\n * Copyright 2025 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport WiperBladeNotificationStyles from './WiperBladeNotificationStyles.module.scss';\nimport { useLabels } from '@/hooks/useLabels';\nimport { View } from '@az/starc-ui';\nimport { Icon } from '@az/starc-ui';\nimport { InfoCircle } from '@az/starc-ui-icons';\n\nconst labelMap = {\n WiperBladeNotification: 'label_PDP_WiperBladeNotification',\n};\n\nexport const WiperBladeNotification = () => {\n const labels = useLabels(labelMap);\n return (\n \n \n \n \n {labels.WiperBladeNotification}\n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type ProductModel } from '@/api/types/products-types';\nimport SuperSkuStyles from './SuperSkuStyles.module.scss';\nimport cx from 'classnames';\nimport { View, Text, Actionable } from '@az/starc-ui';\nimport { useRouter } from 'next/router';\nimport Image from '@/components/NextImage';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { usePageSpecificData } from '@/utils/analytics/usePageSpecificData';\nimport { WiperBladeNotification } from '../WiperBladeNotification/WiperBladeNotification';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\n\nconst SCROLL_BY_AMOUNT = 80;\n// small threshold to account for decimal rounding\nconst SCROLL_THRESHOLD = 3;\nconst WIPER_BLADES_PROODUCT_ID = 'prod1720001';\n\ntype Props = {\n optionName: string;\n availableOptions?: ProductModel['availableOptions'];\n choices?: ProductModel['choices'];\n currentSelection?: Record;\n};\n\nconst SuperSkuOptionSelector = ({\n optionName,\n availableOptions,\n choices,\n currentSelection,\n}: Props) => {\n const router = useRouter();\n const optionsRef = useRef(null);\n const [shouldHideRightArrow, setShouldHideRightArrow] = useState(true);\n const [shouldHideLeftArrow, setShouldHideLeftArrow] = useState(true);\n const { setPageSpecificData } = usePageSpecificData();\n const options = availableOptions?.[optionName];\n\n const checkScrollPosition = () => {\n if (optionsRef.current) {\n const { scrollLeft, scrollWidth, clientWidth } = optionsRef.current;\n\n // Hide left arrow when scrolled all the way to the left\n setShouldHideLeftArrow(scrollLeft <= 0);\n\n // Hide right arrow when scrolled all the way to the right\n setShouldHideRightArrow(\n Math.ceil(scrollLeft + clientWidth + SCROLL_THRESHOLD) >= scrollWidth\n );\n }\n };\n\n const scroll = (offset: number) => {\n const scrollTo = (optionsRef.current?.scrollLeft ?? 0) + offset;\n optionsRef.current?.scrollTo({ left: scrollTo, behavior: 'smooth' });\n };\n\n // Determines which options are disabled given the current selection\n const enabledOptionValues = useMemo(() => {\n if (Object.getOwnPropertyNames(currentSelection).length < 2) {\n return choices?.map((choice) => choice.choice[optionName]) || [];\n }\n\n let enabledOptionValues = new Array();\n const otherOptionNames = Object.getOwnPropertyNames(currentSelection).filter(\n (key) => key !== optionName\n );\n\n otherOptionNames.forEach((otherOptionName) => {\n const enabledChoices = choices?.filter(\n (choice) => choice.choice[otherOptionName] === currentSelection?.[otherOptionName]\n );\n enabledOptionValues = enabledChoices?.map((choice) => choice.choice[optionName]) || [];\n });\n return enabledOptionValues;\n }, [choices, currentSelection, optionName]);\n\n const handleOptionClick = (option: { selected: boolean; value: string }) => {\n if (option.selected) {\n return;\n }\n\n const newSelection = {\n ...currentSelection,\n [optionName]: option.value,\n };\n\n const newChoice = choices?.find(({ choice }) =>\n Object.entries(newSelection).every(([key, value]) => choice[key] === value)\n );\n\n if (newChoice) {\n setPageSpecificData({\n productFindingMethod: 'Super SKU',\n });\n router.push(newChoice.choice.productDetailsPageUrl, newChoice.choice.productDetailsPageUrl, {\n scroll: false,\n });\n }\n };\n const isPDP = router.pathname === '/products/[...slug]';\n const { data: productDetails } = useProductDetails({ enabled: isPDP });\n const preferredVehicle = usePreferredVehicle();\n\n useEffect(() => {\n checkScrollPosition();\n }, []);\n\n useEffect(() => {\n const container = optionsRef.current;\n container?.addEventListener('scroll', checkScrollPosition);\n container?.addEventListener('touch', checkScrollPosition);\n\n return () => {\n container?.removeEventListener('scroll', checkScrollPosition);\n container?.removeEventListener('touch', checkScrollPosition);\n };\n }, []);\n\n return (\n \n \n \n {optionName}:\n \n {currentSelection?.[optionName]}\n \n {preferredVehicle?.catalogVehicleId !== undefined &&\n productDetails?.product?.ecommProductId === WIPER_BLADES_PROODUCT_ID ? (\n \n \n \n ) : null}\n \n \n {options?.map((option) => (\n handleOptionClick(option)}\n className={cx(SuperSkuStyles.optionButton, {\n [SuperSkuStyles.selectedOptionButton]: option.selected,\n [SuperSkuStyles.disabledOptionButton]: !enabledOptionValues.includes(option.value),\n })}\n >\n {option.value}\n \n ))}\n \n scroll(-SCROLL_BY_AMOUNT)}\n className={cx(SuperSkuStyles.arrowButton, SuperSkuStyles.arrowButtonLeft, {\n [SuperSkuStyles.hidden]: shouldHideLeftArrow,\n })}\n >\n \n \n scroll(SCROLL_BY_AMOUNT)}\n className={cx(SuperSkuStyles.arrowButton, SuperSkuStyles.arrowButtonRight, {\n [SuperSkuStyles.hidden]: shouldHideRightArrow,\n })}\n >\n \n \n \n \n );\n};\n\nexport default SuperSkuOptionSelector;\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport root from 'window-or-global';\nimport cx from 'classnames';\nimport { DealsModal } from '@/features/pdp/components/DealsModal';\nimport { RebateOnlyBadge } from '@/features/pdp/components/RebateOnlyBadge';\nimport { ProductCarousel } from '@/features/pdp/components/ProductCarousel';\nimport { Grid } from '../../Grid';\nimport { useRouter } from 'next/router';\nimport { Button } from '@/components/Button';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport { FulfillmentOptions as FulfillmentOptionsMX } from '../../FulfillmentOptions';\nimport OldFulfillmentOptionsV2 from '../../OldFulfillmentOptionsV2';\nimport FulfillmentOptionsV2 from '../../FulfillmentOptionsV2';\nimport { SaveNowBadge } from '@/features/shelf/components/PageTemplates/Shelf/ResultsList/SaveNowBadge';\nimport { getFulfillmentOption } from '@/utils/getFulfillmentOption';\nimport { getMaxAvailQtyFromOptions } from '@/utils/itemHelpers/fulfillmentHelpers/getMaxAvailQtyFromOptions';\nimport { convertFulfillmentTypeToOrderType } from '@/utils/itemHelpers/lineItemHelpers/convertFulfillmentTypeToOrderType';\nimport { certonaPageType } from '@/constants/certonaPageType';\nimport { callToCertona } from '@/features/certona/api/callToCertona';\nimport { usePatchOrderItem } from '@/features/orders/api/patchOrderItem';\nimport type { ReduxState, VehicleSummary } from '@/types';\nimport type {\n ProductData,\n UseAddToCartWithMiniCartResult,\n AddToCartAnalyticsData,\n} from '@/types/reduxStore/cartUpdate';\nimport FitmentButton from '../../AZCustomComponent/FitmentButton';\nimport { Label } from '@/features/i18n';\nimport { interpolateLabel } from '@/features/i18n/utils/interpolateLabel';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { pageTypes } from '../../../constants/page';\nimport { itemDetail } from '../../../constants/images/itemDetail';\nimport { productInfoConstants } from '../../../constants/productInfoConstants';\nimport { cartConstants } from '../../../constants/cart';\nimport { routePaths } from '../../../constants/routePaths';\nimport { checkAvailabilityByGroupTypeId } from '@/features/orders/utils/checkAvailabilityByGroupTypeId';\nimport scrollToElem from '../../../utils/crossBrowserHelpers/scroll';\nimport getPosition from '../../../utils/crossBrowserHelpers/getPosition';\nimport {\n FULFILLMENT_METHODS,\n fulfillmentGroupTypeIds,\n} from '../../../constants/fulfillmentConstants';\nimport CartButton, { type CartButtonRef } from '../../AZCustomComponent/CartButton';\nimport { ProductMetaLabel } from '../../ProductMetaLabel';\nimport NextImage from '@/components/NextImage';\nimport { DealsDrawerButton } from '@/features/deals/components/DrawerOpenButton/DrawerOpenButton';\nimport { YMMEModal } from '@/features/ymme/components/YMMEModal';\nimport { getFormattedPriceMultiplied, getStaticFormattedPrice } from '../../../utils/priceHelpers';\nimport styles from './styles.module.scss';\nimport LeftSectionSkeletonLoading from './SkeletonLoading/LeftSection';\nimport RightSectionSkeletonLoading from './SkeletonLoading/RightSection';\nimport type { InteractionLocation } from '@/types/analytics';\nimport { usePageSpecificData } from '@/utils/analytics/usePageSpecificData';\nimport { trackFulfillmentChange } from '@/utils/analytics/track/trackFulfillmentChange';\nimport { trackQuantityChange } from '@/utils/analytics/track/trackQuantityChange';\nimport { trackQuantityFulfillmentChange } from '@/utils/analytics/track/trackQuantityFulfillmentChange';\nimport { trackCustomizeSkuStart } from '@/utils/analytics/track/trackCustomizeSkuStart';\nimport { trackNearbyStoreUpdate } from '@/utils/analytics/track/trackNearbyStoreUpdate';\nimport { trackReadMoreLinkPdp } from '@/utils/analytics/track/trackReadMoreLinkPdp';\nimport { analyticsPDPReviewRating } from '../analytics/analyticsPDPReviewRating';\nimport { getProductStrikethroughAnalyticValue } from '../analytics/getProductStrikethroughAnalyticValue';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport WarrantyBadge from '../../AZCustomComponent/WarrantyBadge';\nimport { sessionStorage } from '../../../utils/sessionStorage';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport {\n getProductSkuDetailsKey,\n getProductSkuDetailsFromCache,\n} from '@/features/product/api/getProductSkuDetails';\nimport { type ProductSkuDetails } from '@/features/product';\nimport ProductAvailabilityInfoSkeleton from './ProductAvailabilityInfoSkeleton';\nimport { useQueryClient } from '@tanstack/react-query';\nimport { type ProductModel } from '@/api/types/products-types';\nimport { FulfillmentOptionButtonsV2 } from '@/components/FulfillmentOptionButtons/FulfillmentOptionButtonsV2';\nimport {\n getSelectedFulfilmentID,\n getSelectedFulfilmentForSelectedQty,\n getFulfillmentId,\n getSelectedFulfillmentInCart,\n getAllAvailableQuantitiesForSku,\n} from '@/utils/getFulfillmentOption';\nimport { MaxQuantityNotificationBlock } from '@/components/AZCustomComponent/MaxQuantityNotificationBlock';\nimport { SisterStoreContext } from '@/features/fulfillment/context/SisterStoreContext';\nimport dynamic from 'next/dynamic';\nimport ProgressModal from '@/components/AZCustomComponent/ProgressModal';\nimport usePrevious from '@/utils/usePrevious';\nimport { ProductCrossReference } from '@/features/shelf/components/PageTemplates/Shelf/ResultsList/ProductCrossReference';\nimport PdpPriceQuantity from './PdpPriceQuantity';\nimport SeoContent from './SeoContent';\nimport PdpTitleNotes from './PdpTitleNotes';\nimport PdpTechNotes from './PdpTechNotes';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport type { SkuDealsFromAPI } from '@/types/availability';\nimport { type OrderType } from '@/constants/orderTypes';\nimport { usePriceHiding } from '@/hooks/usePriceHiding';\nimport { getXFusionQueryId } from '@/utils/xFusionQueryIdHelpers';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { setInteractionLocation } from '@/features/ymme/utils/ymmeLocationHelper';\nimport { type ShippingType } from '@/features/fulfillment';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { RewardsBadge } from '@/features/rewards/components/RewardsBadge';\nimport {\n determineIndexButtonToBeSelected,\n determineOptionsToDisplayButtons,\n} from '@/features/fulfillment/api/optionsToDisplay';\nimport { View } from '@az/starc-ui';\nimport SuperSkuOptionSelector from './SuperSkus/SuperSkuOptionSelector';\nimport {\n getEligibilityDates,\n isWithinEligibilityPeriod,\n} from '@/features/checkout/utils/elegibilityUtil';\n\nconst LazySearchStoreModal = dynamic(\n () =>\n import('@/components/Store/StoreModal/SearchStoreModal').then((mod) => mod.SearchStoreModal),\n {\n loading: () => ,\n }\n);\n\ntype InitialProps = {\n changeFindProduct: () => void;\n showWarrantyModal: (a: string) => void;\n pdpAddToCartSuccess: boolean;\n addToCartButtonLoading: boolean;\n openConfigurableSku: () => void;\n preferredVehicle: VehicleSummary | undefined;\n hasVehicle: boolean;\n defaultFulfillmentOption: string;\n refetchProductData: () => Promise;\n refetchSkuDetails: () => Promise;\n productDetailsSuccess: boolean;\n skuDetailsDataLastUpdatedAt: any;\n setTrackQOHError: (a: boolean) => void;\n isBundleDealDrawerOpen: Function;\n count: number;\n setCount: Function;\n shippingType: ShippingType;\n setShippingType: Function;\n shippingTypeChanged: boolean;\n setShippingTypeChanged: React.Dispatch>;\n fulfillmentId: number;\n setFulfillmentId: (fulfillmentId: number) => void;\n setShouldOpenSpecsPanel: (shouldOpenSpecsPanel: boolean) => void;\n prevShippingType: string | undefined;\n shouldShowSkeleton: boolean;\n productDetailsUpdatedAt: number;\n setGroupId: (\n groupId: typeof FULFILLMENT_METHODS.STOREORDER | typeof FULFILLMENT_METHODS.ONLINEORDER\n ) => void;\n groupId: typeof FULFILLMENT_METHODS.STOREORDER | typeof FULFILLMENT_METHODS.ONLINEORDER;\n quantityInCart: number;\n setQuantityInCart: (quantityInCart: number) => void;\n setShowBundleDeals: (showBundleDeals: boolean) => void;\n retailPrice: number | string;\n setRetailPrice: (retailPrice: number | string) => void;\n storeChanged: boolean;\n setStoreChanged: (storeChanged: boolean) => void;\n};\n\nconst mobile = 'mobile';\nconst tablet = 'tablet';\n\nconst labelMap = {\n lblUnit: 'label_confirmation_lineItem_Each',\n lblCoreText: 'pagecontent_cart_corePopup_CoreDetails',\n lblGoToCart: 'label_CategoryPage_body_GoToCart',\n lblAddToCart: 'button_ProductDisplayPage_body_AddToCart',\n lblAdd: 'label_MyAccountVehicle_maintenanceInterval_Add',\n lblToCart: 'label_ProductDisplayPage_body_ToCart',\n lblAddToCartDiscount: 'label_ShelfPage_AddToCartDiscount',\n lblSeeSavingsInCart: 'label_see_savings_in_cart',\n viewDealsItem: 'label_Deals_DealsPage_ViewSpecialDealsForThisItem',\n customizeYourFloorMats: 'label.configurableSku.customizeYourFloorMat',\n setVehicleFit: 'label.configurableSku.setVehicleFit',\n lblFindAtNearbyStore: 'label_DetailsPage_body_FindAtNearbyStore',\n lblSelectStore: 'label_DetailsPage_body_SelectStore',\n lblFits: 'label_fits_vehicle',\n lblDoesntFits: 'label_doesnt_fit_vehicle',\n lblNoVehicle: 'label_CategoryPage_body_VechicleSpecific',\n lblPlus: 'label_confirmation_lineItem_Plus',\n lblPartNo: 'label_ProductDisplayPage_body_PartNo',\n lblLocation: 'label_CategoryPage_body_Location',\n lblWarranty: 'label_cart_lineItem_Warranty',\n lblReadless: 'hyperlink_CategoryPage_body_ReadLess',\n lblApplicationSmall: 'label_CategoryPage_body_ApplicationSmall',\n lblWhatIsIt: 'label_CategoryPage_body_WhatIsIt',\n dealMakerCore: 'label_Deals_Dealmaker_Core',\n label_CategoryPage_body_Pinch2Fingers: 'label_CategoryPage_body_Pinch2Fingers',\n label_CategoryPage_body_ImageNotAvailable: 'label_CategoryPage_body_ImageNotAvailable',\n lblCheckNearbyStores: 'Label_CheckNearbyStores',\n lblDetailsPagebodySelectStore: 'label_DetailsPage_body_SelectStore',\n label_CategoryPage_body_SaveNow: 'label_CategoryPage_body_SaveNow',\n label_CategoryPage_body_PriceCut: 'label_CategoryPage_body_PriceCut',\n label_instant_saving: 'label_instant_saving',\n lblMailinRebate: 'Label_Mail_In_Rebate',\n lblProductPartNumber: 'label_DetailsPage_body_PartNo',\n label_DetailsPage_body_PartNumber: 'label_DetailsPage_body_PartNumber',\n lblSkuNumber: 'Label_Sku_Uppercase',\n labelSeeProductPrice: 'label_See_Product_Price',\n lblRegularPrice: 'label_regular_price',\n labelRegularPricePlusCore: 'label_regular_price_plus_core',\n labelRefundableCoreCharge: 'label_refundable_core_charge',\n lbllineItemWhatIsIt: 'label_cart_lineItem_WhatIsIt',\n lblCoreDetails: 'pagecontent_cart_corePopup_CoreDetails',\n label_update_cart: 'label_update_cart',\n lblSetVehicleToSeePricing: 'label_set_vehicle_to_see_pricing',\n lblRefundable: 'label_refundable',\n lblOrderSummaryCoreDeposit: 'label_cart_orderSummary_coreDeposit',\n label_check_nearby_stores: 'label_check_nearby_stores',\n label_for: 'label_checkout_shipping_For',\n labelUpdateCartToProductItems: 'label_update_cart_to_product_items',\n label_DetailsPage_body_Location: 'label_DetailsPage_body_Location',\n};\nconst partNumberLabelBopusMX = (\n \n \n);\n\nlet pdpCheckFits: InteractionLocation = 'Check if it fits';\n\ntype ProductAvailabilityInfoProps = InitialProps & {\n productDetails: ProductModel | undefined;\n skuDetailsData: ProductSkuDetails | null;\n skuDealsData: SkuDealsFromAPI[] | undefined;\n shouldShowSkeleton: boolean;\n autoFocus?: boolean;\n productData: ProductData;\n onAddToCartCall: UseAddToCartWithMiniCartResult['addToCartCall'];\n oemBrandName?: string;\n oemPartNumber?: string;\n xFusionQueryId?: string;\n staticPrice: number;\n};\n\nexport default function ProductAvailabilityInfo({\n productDetails,\n skuDetailsData,\n skuDealsData,\n shouldShowSkeleton,\n autoFocus,\n onAddToCartCall,\n productData,\n fulfillmentId,\n oemBrandName,\n oemPartNumber,\n xFusionQueryId,\n staticPrice,\n ...props\n}: ProductAvailabilityInfoProps) {\n const router = useRouter();\n const locale = useLocale();\n const labels = useLabels(labelMap);\n const sisterStoreContext = useContext(SisterStoreContext);\n const { data: headerData } = useHeaderData();\n const catalogVehicleId = headerData?.vehicleMap?.catalogVehicleId ?? '';\n const { data: storeDetailsData } = useStoreDetailsData();\n const storeNumber = storeDetailsData?.storeNumber;\n const queryClient = useQueryClient();\n const { mutateAsync: patchOrderItem } = usePatchOrderItem();\n const { isFetchingLocation } = useSelector(({ appData }: ReduxState) => appData);\n const isBopusNewMsgApplicable = useFeatureFlag('IS_BOPUS_MSG_AVAILABLE_US') === 'true';\n const checkoutNearbyStoresEnabled = useFeatureFlag('CHECKOUT_NEARBY_STORES_ENABLED') === 'true';\n const dealDrawerPDPEnabled = useFeatureFlag('DEAL_DRAWER_PDP_ENABLED') === 'true';\n const strikeThroughPricingEnabled = useFeatureFlag('SHOW_STRIKE_THROUGH_PRICING') === 'true';\n const updateCartEnabled = useFeatureFlag('UPDATE_CART_ENABLED') === 'true';\n const isNewDealsApiEnabled = useFeatureFlag('IS_NEW_DEALS_API_ENABLED') === 'true';\n const isSuperSkusEnabled = useFeatureFlag('IS_SUPER_SKUS_ENABLED') === 'true';\n const hidePricing = usePriceHiding();\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const isUS = locale === countryCodes.us;\n\n const { setPageSpecificData } = usePageSpecificData();\n\n const isBopusEnabled = storeDetailsData?.bopusEnabled;\n const isBopusMexicoStoreEnabled = locale === countryCodes.mx && isBopusEnabled;\n\n const [productEdited, setProductEdited] = useState(false);\n const [prevGroupId, setPrevGroupId] = useState(0);\n const [prevGroupIdInCart, setPrevGroupIdInCart] = useState(0);\n const [pdpDealsModelOpen, setPdpDealsModelOpen] = useState(false);\n const [showYmme, setShowYmme] = useState(false);\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n const [displayQuantityWarningMessage, setDisplayQuantityWarningMessage] = useState(false);\n const [disableRemoveButton, setDisableRemoveButton] = useState(false);\n const [payPalIsLoaded, setPayPalIsLoaded] = useState(false);\n const [productAddedToCart, setProductAddedToCart] = useState(false);\n\n const optionsThatAreDisplayed = determineOptionsToDisplayButtons(\n skuDetailsData?.fulfillmentOptions\n );\n const selectedItemId =\n optionsThatAreDisplayed[determineIndexButtonToBeSelected(props.shippingType, fulfillmentId)]\n ?.fulfillmentTypeIdOriginal;\n\n const [selectedFulfillmentTypeIdOriginal, setSelectedFulfillmentTypeIdOriginal] =\n useState(0);\n\n useEffect(() => {\n setSelectedFulfillmentTypeIdOriginal(selectedItemId ?? 0);\n }, [selectedItemId]);\n\n const cartButtonRef = useRef(null);\n const seeDealsButtonRef = useRef(null);\n const prevProductDetailsUpdate = usePrevious(props.productDetailsUpdatedAt);\n const prevSkuDetailsUpdate = usePrevious(props.skuDetailsDataLastUpdatedAt);\n const prevSkuId = usePrevious(productDetails?.itemId);\n const handleDealsModal = () => {\n setPdpDealsModelOpen(true);\n };\n\n const configurableSku = skuDetailsData?.skuPricingAndAvailability.configurableSku ?? false;\n\n const price = configurableSku\n ? skuDetailsData?.skuPricingAndAvailability.lowestPrice\n : skuDetailsData?.skuPricingAndAvailability.retailPrice;\n\n const handleCloseModal = () => {\n setPdpDealsModelOpen(false);\n };\n\n const ratingView = () => {\n const ratingElement = document.getElementById('tab-reviews');\n\n if (ratingElement != null) {\n const client = getPosition(ratingElement);\n\n if (client.y !== 0) {\n scrollToElem(client.y - 75);\n }\n }\n };\n\n const shouldDisplaySuperSkus =\n isSuperSkusEnabled && !!productDetails?.availableOptions && !!productDetails?.choices;\n const currentSuperSkuSelection = useMemo(\n () =>\n Object.entries(productDetails?.availableOptions ?? {}).reduce((acc, [key, options]) => {\n const selectedOption = options.find((option) => option.selected);\n const selectedValue = selectedOption?.value ?? '';\n return {\n ...acc,\n [key]: selectedValue,\n };\n }, {} as Record),\n [productDetails?.availableOptions]\n );\n\n const skuAvailableQuantities = useRef(\n getAllAvailableQuantitiesForSku(skuDetailsData?.fulfillmentOptions)\n );\n const handleQuantityChange = useCallback(\n (\n quantity: number,\n quantityErrorMsg: boolean,\n showQuantityWarningMessage?: boolean,\n fulfillmentV2Id?: number\n ) => {\n const {\n groupId,\n setCount,\n setRetailPrice,\n quantityInCart,\n productDetailsSuccess,\n pdpAddToCartSuccess,\n } = props;\n const { sthQuantity } = skuAvailableQuantities.current;\n const storeData =\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions?.find(\n ({ groupTypeId }) => {\n return groupTypeId === groupId;\n }\n );\n const shouldShowMessage =\n fulfillmentId === FULFILLMENT_METHODS.STOREORDER\n ? storeData && storeData?.availableQty > 0\n : fulfillmentId === FULFILLMENT_METHODS.ONLINEORDER\n ? sthQuantity > 0\n : true;\n\n if (shouldShowMessage) {\n setDisplayQuantityWarningMessage(showQuantityWarningMessage ?? false);\n }\n const newQuantity = quantity ? Math.abs(quantity) : 1;\n setCount(newQuantity);\n setRetailPrice(getFormattedPriceMultiplied(staticPrice, newQuantity));\n const fulfillmentGroupSelectedInCart = skuDetailsData?.fulfillmentOptions?.find(\n (option) => option.selected === true\n );\n const fulfillmentSelectedInCart =\n fulfillmentGroupSelectedInCart?.groupFulfillmentOptions.find(\n (option) => option.selected === true\n );\n // Online order and Next day are the same button and this logic ensures it does not mark the two as different things\n const fulfillmentMethodChanged =\n Number(fulfillmentSelectedInCart?.fulfillmentTypeId) ==\n Number(fulfillmentV2Id ?? fulfillmentId) ||\n (Number(fulfillmentSelectedInCart?.fulfillmentTypeId) == 101 &&\n Number(fulfillmentV2Id ?? fulfillmentId) == 107) ||\n (Number(fulfillmentSelectedInCart?.fulfillmentTypeId) == 107 &&\n Number(fulfillmentV2Id ?? fulfillmentId) == 101);\n setProductEdited(\n quantityInCart > 0 &&\n !!shouldShowMessage &&\n (quantityInCart !== newQuantity || !fulfillmentMethodChanged) &&\n (productDetailsSuccess || pdpAddToCartSuccess)\n );\n },\n [\n fulfillmentId,\n props,\n skuAvailableQuantities,\n skuDetailsData?.fulfillmentOptions,\n skuDetailsData?.skuPricingAndAvailability,\n staticPrice,\n ]\n );\n\n const changeShippingTypeV2 = useCallback(\n (\n shippingType: string,\n groupId: number,\n maxAvailableQty: number,\n isSisterStoreAvailable?: boolean\n ) => {\n const { setShippingType, setGroupId, quantityInCart, count } = props;\n setPrevGroupId(props.groupId);\n setShippingType(shippingType);\n setGroupId(groupId);\n\n const fulfillmentSelectedInCart = skuDetailsData?.fulfillmentOptions?.find(\n (option) => option.selected === true\n );\n\n if (\n quantityInCart > 0 &&\n count === quantityInCart &&\n fulfillmentSelectedInCart?.groupId !== groupId\n ) {\n setProductEdited(true);\n } else if (\n quantityInCart > 0 &&\n count === quantityInCart &&\n fulfillmentSelectedInCart?.groupId === groupId\n ) {\n setProductEdited(false);\n } else {\n setProductEdited(quantityInCart > 0 || productAddedToCart);\n }\n if (isSisterStoreAvailable) {\n handleQuantityChange(1, false);\n } else if (count > maxAvailableQty && maxAvailableQty > 0) {\n handleQuantityChange(maxAvailableQty, false);\n }\n },\n [handleQuantityChange, productAddedToCart, props, skuDetailsData]\n );\n\n const changeShippingTypeV3 = (\n shippingType: typeof cartConstants.STOREORDER | typeof cartConstants.ONLINEORDER,\n groupId: typeof FULFILLMENT_METHODS.STOREORDER | typeof FULFILLMENT_METHODS.ONLINEORDER,\n maxAvailableQty: number,\n isSisterStoreAvailable?: boolean,\n fulfillmentTypeId?: number,\n fulfillmentTypeIdOriginal?: number\n ) => {\n setSelectedFulfillmentTypeIdOriginal(Number(fulfillmentTypeIdOriginal));\n const { quantityInCart, count } = props;\n setPrevGroupId(props.groupId);\n setDisplayQuantityWarningMessage(false);\n props.setShippingTypeChanged(true);\n\n const selectedFulfillmentId = getSelectedFulfilmentID(\n skuDetailsData?.skuPricingAndAvailability.skuAvailabilityInfo.fulfillmentOptions ?? []\n );\n\n props.setShippingType(shippingType);\n props.setGroupId(groupId);\n if (fulfillmentTypeId) {\n handleFulfillmentIdUpdate(fulfillmentTypeId);\n }\n if (\n quantityInCart > 0 &&\n count === quantityInCart &&\n fulfillmentTypeId === FULFILLMENT_METHODS.NEXTDAY &&\n selectedFulfillmentId === FULFILLMENT_METHODS.ONLINEORDER\n ) {\n setProductEdited(false);\n } else if (\n quantityInCart > 0 &&\n count === quantityInCart &&\n selectedFulfillmentId !== fulfillmentTypeId\n ) {\n setProductEdited(true);\n } else if (\n quantityInCart > 0 &&\n count === quantityInCart &&\n selectedFulfillmentId === fulfillmentTypeId\n ) {\n setProductEdited(false);\n } else {\n setProductEdited(quantityInCart > 0 || productAddedToCart);\n }\n if (isSisterStoreAvailable) {\n handleQuantityChange(1, false);\n } else if (count > maxAvailableQty && maxAvailableQty > 0) {\n handleQuantityChange(maxAvailableQty, false);\n }\n };\n useEffect(() => {\n const observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.addedNodes.length > 0) {\n const paypalMessage = document.getElementById('paypal-message');\n if (paypalMessage) {\n setPayPalIsLoaded(true);\n }\n }\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n return () => observer.disconnect();\n }, []);\n\n const handleShowReviewAnalytics = useCallback(() => {\n const { pageName = '', pageType = '', siteSection = '' } = root.utag_data || {};\n const analyticsData = {\n eventType: 'reviewsLinkInteractionPDP',\n pageName,\n pageType,\n siteSection,\n customLinkName: 'Read Reviews',\n productBrandList: [productDetails?.subBrandName ?? ''],\n productIdList: [skuDetailsData?.skuPricingAndAvailability.skuId ?? ''],\n productPartNumberList: [productDetails?.partNumber ?? ''],\n productRepositoryIdList: [productDetails?.ecommProductId ?? ''],\n };\n clickTrack(analyticsData);\n }, [productDetails, skuDetailsData]);\n\n useEffect(() => {\n const showReview = document.getElementById('ratingsTop');\n //listen for onclick events for showReview\n if (showReview) {\n showReview.addEventListener(\n 'click',\n () => {\n handleShowReviewAnalytics();\n },\n false\n );\n }\n return () => {\n if (showReview) {\n showReview.removeEventListener('click', () => {}, false);\n }\n };\n }, [handleShowReviewAnalytics]);\n\n const updateCart = useCallback(\n async (count: number = props.count) => {\n const prevcartCount =\n (skuDetailsData?.quantityInCart ?? 0) > 0 ? skuDetailsData?.quantityInCart : 1;\n const productIdFromProductDetails = productDetails?.ecommProductId ?? '';\n const onSuccess = () => {\n const skuDetailsQueryOptions = {\n skuIds: [productDetails?.itemId ?? null],\n vehicleId: catalogVehicleId,\n storeNumber: storeNumber,\n isNewDealsApiEnabled,\n };\n const skuDetails = getProductSkuDetailsFromCache(queryClient, skuDetailsQueryOptions);\n const updatedSkuDetails = skuDetails?.map(\n (skuDetailItem: {\n skuPricingAndAvailability: { productId: string; skuId: string | null };\n }) => {\n if (skuDetailItem.skuPricingAndAvailability?.skuId === productDetails?.itemId) {\n const newArr = skuDetailsData?.fulfillmentOptions?.map((option) => {\n if (option.groupId === props.groupId) {\n return { ...option, selected: true };\n } else {\n return { ...option, selected: false };\n }\n });\n return {\n ...skuDetailItem,\n quantityInCart: count,\n fulfillmentOptions: newArr,\n itemPresentInCart: true,\n };\n }\n return skuDetailItem;\n }\n );\n const skuDetailsKey = getProductSkuDetailsKey(skuDetailsQueryOptions);\n queryClient.setQueryData(skuDetailsKey, updatedSkuDetails);\n cartButtonRef.current?.onSuccessfulAdd?.(true);\n };\n\n setDisableRemoveButton(true);\n\n const addToCartPayload = {\n skuId: productDetails?.itemId ?? '',\n productId: productIdFromProductDetails,\n quantity: count.toString(),\n fulfillmentTypeId: fulfillmentId,\n vehicleId: catalogVehicleId,\n storeNumber,\n xFusionQueryId,\n };\n await patchOrderItem(addToCartPayload);\n\n onSuccess();\n await props.refetchSkuDetails();\n if (sessionStorage.getItem('sister_store_update_type') === 'select_store_and_update_cart') {\n const productType = root.sessionStorage?.getItem('productType') ?? null;\n trackNearbyStoreUpdate(\n 'Update_Quantity',\n 'In-Stock Near You: Set Store and Add to Cart: Quantity Change',\n {\n originalPartTypeId: productDetails?.originalPartTypeId,\n quantityInCart: props.quantityInCart,\n brandName: productDetails?.subBrandName,\n corePrice: price,\n shippingType: props.shippingType,\n skuNumber: productDetails?.itemId,\n partNumber: productDetails?.partNumber ?? '',\n productPrice: price,\n productRepositoryId: productDetails?.ecommProductId,\n requestQuantity: props.quantityInCart,\n productIdList: [skuDetailsData?.skuPricingAndAvailability.skuId ?? ''],\n productPartList: [productDetails?.partTypeName ?? ''],\n storeId: storeNumber,\n storeSearchTerm: storeNumber,\n productRecommendationTypeList: productType ? 'Sponsored Product' : 'AutoZone',\n }\n );\n }\n setProductEdited(false);\n setDisableRemoveButton(false);\n const { fulfillmentOptions } = skuDetailsData ?? {};\n const fullFillmaxQuantity =\n fulfillmentOptions?.find((option) => option.groupId == props.groupId)?.maxAvailableQty ?? 0;\n const allFulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability.skuAvailabilityInfo.fulfillmentOptions;\n const selectedFulfillmentOption = allFulfillmentOptions?.find((option) => option.selected);\n let startGroupId;\n\n const fulfillmentIdChange =\n fulfillmentId === FULFILLMENT_METHODS.SAMEDAY ? cartConstants.SDD : cartConstants.STH;\n const fulfillmentChange =\n props.groupId === FULFILLMENT_METHODS.STOREORDER\n ? cartConstants.BOPUS\n : fulfillmentIdChange;\n\n if ((skuDetailsData?.quantityInCart ?? 0) > 0) {\n startGroupId = selectedFulfillmentOption?.groupTypeId ?? -1;\n } else {\n const shipToHomeAvailable = checkAvailabilityByGroupTypeId(\n allFulfillmentOptions,\n FULFILLMENT_METHODS.ONLINEORDER\n );\n const storePickupAvailable = checkAvailabilityByGroupTypeId(\n allFulfillmentOptions,\n FULFILLMENT_METHODS.STOREORDER\n );\n const selectedShippingType = getFulfillmentOption(\n shipToHomeAvailable,\n storePickupAvailable,\n props.defaultFulfillmentOption,\n locale\n );\n startGroupId =\n selectedShippingType === cartConstants.ONLINEORDER\n ? FULFILLMENT_METHODS.ONLINEORDER\n : FULFILLMENT_METHODS.STOREORDER;\n }\n\n if (\n ((prevGroupIdInCart == 0 && props.groupId === startGroupId) ||\n prevGroupIdInCart === props.groupId) &&\n selectedFulfillmentOption?.fulfillmentTypeId === fulfillmentId &&\n prevcartCount !== count &&\n fullFillmaxQuantity !== 1\n ) {\n if (!sessionStorage.getItem('sister_store_update_type')) {\n trackQuantityChange(\n 'pdpPageQuantityChange',\n [String(fullFillmaxQuantity)],\n [String(productDetails?.itemId)],\n [String(count)]\n );\n }\n\n sessionStorage.removeItem('sister_store_update_type');\n } else if (\n (prevGroupIdInCart !== props.groupId ||\n selectedFulfillmentOption?.fulfillmentTypeId !== fulfillmentId) &&\n prevcartCount !== count &&\n !(prevcartCount === 0 && count === 1) &&\n fullFillmaxQuantity !== 1\n ) {\n trackQuantityFulfillmentChange(\n fulfillmentChange,\n 'pdpPageFulfillmentAndQuantityChange',\n [String(fullFillmaxQuantity)],\n [String(productDetails?.itemId)],\n [String(count)],\n 'fulfillmentAndQuantityChange'\n );\n setPrevGroupIdInCart(props.groupId);\n } else if (\n prevGroupIdInCart !== props.groupId ||\n selectedFulfillmentOption?.fulfillmentTypeId !== fulfillmentId\n ) {\n trackFulfillmentChange(fulfillmentChange, 'pdpPageFulfillmentChange', [\n String(selectedFulfillmentTypeIdOriginal),\n ]);\n setPrevGroupIdInCart(props.groupId);\n }\n },\n [\n catalogVehicleId,\n fulfillmentId,\n patchOrderItem,\n prevGroupIdInCart,\n productDetails,\n queryClient,\n props,\n skuDetailsData,\n isNewDealsApiEnabled,\n price,\n storeNumber,\n xFusionQueryId,\n locale,\n selectedFulfillmentTypeIdOriginal,\n ]\n );\n\n const addToCart = useCallback(\n async (count: number = props.count) => {\n const productIdFromProductDetails = productDetails?.ecommProductId ?? '';\n const addToCartRequest = {\n sku_id: productDetails?.itemId ?? '',\n product_id: productIdFromProductDetails,\n quantity: String(count),\n category_id: productDetails?.categoryId ?? '',\n order_type: `${fulfillmentId}` as OrderType,\n catalog_vehicle_id: catalogVehicleId ?? '',\n store_number: String(storeNumber ?? ''),\n orderType: `${fulfillmentId}`,\n xFusionQueryId: xFusionQueryId ?? getXFusionQueryId() ?? '',\n };\n\n const fulfillmentIdChange =\n fulfillmentId === FULFILLMENT_METHODS.SAMEDAY ? cartConstants.SDD : cartConstants.STH;\n const fulfillmentChange =\n props.groupId === FULFILLMENT_METHODS.STOREORDER\n ? cartConstants.BOPUS\n : fulfillmentIdChange;\n\n const productType = root.sessionStorage?.getItem('productType');\n\n let analyticsData: AddToCartAnalyticsData | null = null;\n let productAvailableQuantity = 0;\n const discountedPrice = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.discountedPrice\n : skuDetailsData?.skuPricingAndAvailability?.discountedPrice;\n const productStrikeThroughPricing = getProductStrikethroughAnalyticValue(\n skuDetailsData?.skuPricingAndAvailability,\n discountedPrice,\n strikeThroughPricingEnabled\n );\n\n if (sessionStorage.getItem('addOrUpdateCart') === 'true') {\n const fulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions;\n productAvailableQuantity =\n (fulfillmentOptions && getMaxAvailQtyFromOptions(fulfillmentOptions)) ?? 0;\n } else {\n const { pageName = '', pageType = '' } = root.utag_data ?? {};\n analyticsData = {\n fulfillmentChange: prevGroupId !== 0 ? fulfillmentChange : '',\n customLinkName:\n prevGroupId !== 0\n ? 'pdpPageFulfillmentChange'\n : productType === 'certona'\n ? 'PDP:Certona:Cart Addition'\n : productType === 'sponsoredProduct'\n ? 'PDP:SponsoredProduct:Cart Addition'\n : 'PDP:AutoZone:Cart Addition',\n productBrand: productDetails?.subBrandName ?? '',\n price: props.retailPrice,\n corePrice: (skuDetailsData?.skuPricingAndAvailability?.corePrice ?? 0) * count,\n originalPartTypeId: productDetails?.originalPartTypeId ?? '',\n productRepositoryId: productDetails?.ecommProductId ?? '',\n productPartNumber: productDetails?.partNumber ?? '',\n pageName: pageName,\n pageType: pageType,\n productRecommendationTypeList:\n productType === 'certona'\n ? 'Certona'\n : productType === 'sponsoredProduct'\n ? 'Sponsored Product'\n : productType === 'affinity'\n ? 'Affinity'\n : 'AutoZone',\n productStrikeThroughPricing: productStrikeThroughPricing,\n productFulfillmentOptionSeenByCustomer: selectedFulfillmentTypeIdOriginal,\n };\n }\n\n const isAffinityRecommendation = sessionStorage.getItem('pdpUtagViewAffinity') === 'true';\n\n if (isAffinityRecommendation && analyticsData) {\n analyticsData = {\n ...analyticsData,\n productRecommendationTypeList: 'Affinity',\n };\n }\n\n if (addToCartRequest?.product_id && !skuDetailsData?.itemPresentInCart) {\n const onSuccess = () => {\n props.setQuantityInCart(props.count);\n props.setTrackQOHError(true);\n setProductAddedToCart(true);\n };\n\n const onSettled = async () => {\n if (\n sessionStorage.getItem('sister_store_update_type') === 'select_store_and_add_to_cart'\n ) {\n trackNearbyStoreUpdate(\n 'In-Stock Near You: Set Store and Add to Cart',\n 'In-Stock Near You: Set Store and Add to Cart',\n {\n storeId: String(storeNumber ?? ''),\n storeSearchTerm: String(storeNumber ?? ''),\n productRecommendationTypeList:\n productType === 'sponsoredProduct' ? 'Sponsored Product' : 'AutoZone',\n originalPartTypeId: productDetails?.originalPartTypeId ?? '',\n quantityInCart: productAvailableQuantity ?? 0,\n brand: skuDetailsData?.skuPricingAndAvailability?.brandName ?? '',\n corePrice: skuDetailsData?.skuPricingAndAvailability?.corePrice ?? 0,\n skuNumber: skuDetailsData?.skuPricingAndAvailability?.skuId ?? '',\n partNumber: productDetails?.partNumber ?? '',\n productPrice: skuDetailsData?.skuPricingAndAvailability?.retailPrice ?? 0,\n productRepositoryId: productDetails?.ecommProductId ?? '',\n productIdList: [skuDetailsData?.skuPricingAndAvailability.skuId ?? ''],\n productPartList: [productDetails?.partTypeName ?? ''],\n requestQuantity: Number(productData?.quantity ?? 0),\n }\n );\n }\n setDisableRemoveButton(false);\n await props.refetchSkuDetails();\n await props.refetchProductData();\n cartButtonRef.current?.onSuccessfulAdd?.();\n };\n\n setDisableRemoveButton(true);\n onAddToCartCall(addToCartRequest, analyticsData, catalogVehicleId, onSuccess, onSettled);\n } else {\n router.push(routePaths.cart);\n }\n },\n [\n catalogVehicleId,\n fulfillmentId,\n onAddToCartCall,\n prevGroupId,\n productData.quantity,\n productDetails,\n props,\n router,\n skuDetailsData,\n storeNumber,\n strikeThroughPricingEnabled,\n isNewDealsApiEnabled,\n skuDealsData,\n xFusionQueryId,\n selectedFulfillmentTypeIdOriginal,\n ]\n );\n\n const addToCartDisabled = () => {\n if (isFetchingLocation) {\n return true;\n }\n\n const isMxWeb = locale === countryCodes.mx;\n const productData = skuDetailsData;\n const skuPricingAndAvailability = productData?.skuPricingAndAvailability;\n const customizeSKUs = skuPricingAndAvailability?.configurableSku;\n const retailPrice = props.retailPrice?.toString().split('.');\n const dealPrice = [retailPrice[0], retailPrice[1] ? retailPrice[1].padEnd(2, '0') : '00'];\n const havePrice = !!dealPrice.reduce(\n (totalPrice, value) => totalPrice + Number(value || '0'),\n 0\n );\n const fulfillmentOptions = skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions;\n const storeSelected = productData?.storeSelected;\n const shipToHomeAvailable = checkAvailabilityByGroupTypeId(\n fulfillmentOptions,\n fulfillmentGroupTypeIds.shipToHome\n );\n const storePickupAvailable = checkAvailabilityByGroupTypeId(\n fulfillmentOptions,\n fulfillmentGroupTypeIds.storePickup\n );\n const productAvailableQuantity =\n (fulfillmentOptions && getMaxAvailQtyFromOptions(fulfillmentOptions)) ?? 0;\n const isNotAvailable = fulfillmentOptions?.every((item) => {\n return item.available === false;\n });\n const sisterStoreAvailable = fulfillmentOptions?.[0]?.sisterStoreAvailable ?? false;\n if (isNotAvailable && sisterStoreAvailable && isBopusNewMsgApplicable) {\n return false;\n }\n return (\n (isMxWeb && storeSelected && (!storePickupAvailable || productAvailableQuantity <= 0)) ||\n (!isMxWeb && customizeSKUs && !shipToHomeAvailable) ||\n (!isMxWeb && !havePrice && !customizeSKUs) ||\n (!isMxWeb && !shipToHomeAvailable && !storePickupAvailable)\n );\n };\n\n const onToggleClick = () => {\n const specElement = document.getElementById('product-specifications-container');\n trackReadMoreLinkPdp('productSpecifications');\n\n if (specElement != null) {\n const viewportOffset = specElement.getBoundingClientRect();\n props.setShouldOpenSpecsPanel?.(true);\n\n if (viewportOffset.top !== 0) {\n scrollToElem(viewportOffset.top + window.pageYOffset - 100);\n } else {\n handleWindowScroll(window.certona.device);\n }\n }\n };\n\n const handleWindowScroll = (device: string) => {\n if (device === mobile) {\n window.scroll({\n top: window.innerHeight + window.innerWidth,\n behavior: 'smooth',\n });\n } else if (device === tablet && window.orientation === 90) {\n window.scroll({\n top: window.outerWidth,\n behavior: 'smooth',\n });\n } else if (device === tablet) {\n window.scroll({\n top: window.innerHeight,\n behavior: 'smooth',\n });\n }\n };\n\n const showWarrantyModal = () => {\n props.showWarrantyModal(productInfoConstants.ProductSpec);\n };\n\n const goToCart = () => {\n router.push(routePaths.cart);\n };\n\n const toggleStoreModal = () => {\n setStoreModalOpen(!storeModalOpen);\n };\n\n const displayDeals = () => {\n if (!pdpDealsModelOpen) {\n return null;\n }\n const mainImage = productDetails?.itemImageUrl ?? '';\n const productId = productDetails?.ecommProductId ?? '';\n const catalogRefIdNew = productDetails?.itemId ?? '';\n const skuDescription = productDetails?.itemDescription ?? '';\n return (\n \n );\n };\n\n const pdpDealsButton = () => {\n const dealAvailable = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.dealAvailable\n : skuDetailsData?.aZBadgesFlagVO?.dealAvailable;\n\n return (\n dealAvailable &&\n !dealDrawerPDPEnabled && (\n \n \n \n )\n );\n };\n\n const pdpRatingPartWarrantyLocation = (\n catalogRefIdNew: string,\n productData?: ProductModel,\n warrantyDetails?: ProductSkuDetails | null\n ) => {\n const partNumberDisplay = productData?.partNumber ?? '';\n const skuDisplayClass = partNumberDisplay ? styles.pipeSymbolLeft : '';\n return (\n <>\n {catalogRefIdNew ? (\n
\n \n
\n ) : null}\n\n
\n {oemPartNumber && (\n \n )}\n
\n \n \n
\n
\n \n \n );\n };\n\n const pdpPriceQuantityToggle = (dealAvailable: boolean | undefined = false) => {\n const configurableSku = skuDetailsData?.skuPricingAndAvailability?.configurableSku ?? false;\n const skuPricingAndAvailability = skuDetailsData?.skuPricingAndAvailability;\n const rebatesAvailable = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuRebatesInfo?.rebatesAvailable ?? false\n : skuPricingAndAvailability?.rebatesAvailable ?? false;\n const rebateUrl = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuRebatesInfo?.rebateUrl ?? undefined\n : skuPricingAndAvailability?.rebateUrl ?? undefined;\n const rebateShortDesc = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuRebatesInfo?.rebateShortDesc ?? undefined\n : skuPricingAndAvailability?.rebateShortDesc ?? undefined;\n const storeSelected = skuDetailsData?.storeSelected;\n const availabilityInfoVO = skuDetailsData?.availabilityInfoVO;\n const eligibleForNextDay = skuDetailsData?.aZBadgesFlagVO?.dealAvailable; // only present for v2 fulfillment\n\n const fulFillmentOptionsV2 = skuDetailsData?.fulfillmentOptions;\n const selectedGroupFulfillmentHasDealsAvailableQty =\n skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions?.find(\n (o) => o.available && o.groupTypeId === props.groupId && o.dealsAvailableQty > 0\n );\n const availableQuantity =\n skuPricingAndAvailability?.skuAvailabilityInfo.fulfillmentOptions.find(\n (option) => option.fulfillmentTypeId === fulfillmentId\n )?.availableQty ?? 0;\n // when SHOW_STRIKE_THROUGH_PRICING is enabled and discountPrice has value\n // show the strikethrough (save %) price format as well as hide the showDealDrawerButton\n const discountedPrice = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.discountedPrice\n : skuPricingAndAvailability?.discountedPrice;\n const showStrikeThroughPricing = strikeThroughPricingEnabled && !!discountedPrice;\n\n const showDealDrawerButton =\n dealDrawerPDPEnabled &&\n storeSelected &&\n !!props.groupId &&\n !!selectedGroupFulfillmentHasDealsAvailableQty &&\n !showStrikeThroughPricing;\n const showDealDrawerButtonV2 =\n dealDrawerPDPEnabled &&\n storeSelected &&\n !showStrikeThroughPricing &&\n !!props.groupId &&\n skuDealsData?.[0]?.skuDealsInfo?.dealAvailable;\n let saveNowOrRebateBadges = null;\n const dealInfo = {\n dealAvailable,\n rebatesAvailable,\n rebateUrl,\n rebateShortDesc,\n };\n if (!dealDrawerPDPEnabled) {\n if (dealAvailable || rebatesAvailable) {\n saveNowOrRebateBadges = (\n \n );\n }\n } else if (dealDrawerPDPEnabled && rebatesAvailable) {\n saveNowOrRebateBadges = ;\n }\n\n const lowestPrice = skuPricingAndAvailability?.lowestPrice ?? '';\n const [dollars, cents = '00'] = configurableSku\n ? lowestPrice.toString().split('.')\n : staticPrice.toString().split('.');\n\n const price = parseFloat(`${dollars}.${cents}`);\n\n const renderFulfilmentOptions = () => {\n if (locale !== countryCodes.mx && locale !== countryCodes.ptBr) {\n return (\n \n );\n } else {\n return fullFillmentOptionDisplay;\n }\n };\n const usFulfillmentOptions = isBopusNewMsgApplicable ? (\n \n ) : (\n \n );\n const fullFillmentOptionDisplay = (\n \n
\n {locale !== countryCodes.mx && locale !== countryCodes.ptBr ? (\n usFulfillmentOptions\n ) : (\n props.setShippingType(val)}\n shippingType={props.shippingType}\n availabilityInfoVO={availabilityInfoVO}\n dollars={dollars}\n cents={cents}\n skuPricingAndAvailability={skuPricingAndAvailability}\n quantityInCart={skuDetailsData?.quantityInCart ?? 0}\n skuId={skuPricingAndAvailability?.skuId}\n productName={productDetails?.itemDescription ?? ''}\n storeSelected={!!storeSelected}\n itemData={productDetails}\n inline\n />\n )}\n
\n
\n );\n const selectedFulfillmentOption =\n skuPricingAndAvailability?.skuAvailabilityInfo.fulfillmentOptions.find(\n (option) => option.fulfillmentTypeId === fulfillmentId\n ) ||\n skuPricingAndAvailability?.skuAvailabilityInfo.fulfillmentOptions.find(\n (option) => option.selected\n );\n const isAvailable = selectedFulfillmentOption?.available;\n\n const { nddQuantity, sddQuantity } = skuAvailableQuantities.current;\n const sisterStoreAvailable =\n skuPricingAndAvailability?.skuAvailabilityInfo.fulfillmentOptions[0]?.sisterStoreAvailable ??\n false;\n\n return (\n
\n {!hidePricing && (\n \n )}\n {!!props.shippingType &&\n (isNewDealsApiEnabled ? showDealDrawerButtonV2 : showDealDrawerButton) && (\n \n
\n \n
\n
\n )}\n\n {props.count > 0 && displayQuantityWarningMessage && locale !== countryCodes.mx && (\n 99 ? 99 : availableQuantity}\n selectedQuantity={props.count}\n nddQuantity={nddQuantity}\n sddQuantity={sddQuantity}\n />\n )}\n\n {isSuperSkusEnabled && !!productDetails?.availableOptions && !!productDetails?.choices && (\n \n {Object.keys(productDetails.availableOptions).map((option) => (\n \n ))}\n {props.hasVehicle && techNotesDisplayRender(productDetails)}\n \n )}\n \n {renderFulfilmentOptions()}\n
\n
\n );\n };\n\n const showBundleDealsDrawer = () => {\n props.setShowBundleDeals(true);\n };\n\n const techNotesDisplayRender = (productData?: ProductModel) => {\n if (!productData || (!productData.techNote && !productData.quickNote)) {\n return null;\n }\n\n const notes =\n productData.quickNote && productData.techNote\n ? `${productData.quickNote}. ${productData.techNote}`\n : productData.quickNote || productData.techNote;\n\n return (\n \n );\n };\n\n const handleShowYmmeFitment = (hasVehicle: boolean, vehicleFits: boolean) => {\n if (hasVehicle && vehicleFits) {\n setInteractionLocation('fitmentThisFits');\n pdpCheckFits = 'Fits your vehicle';\n } else if (hasVehicle && !vehicleFits) {\n setInteractionLocation('fitmentThisDoesNotFit');\n pdpCheckFits = 'Does not Fit your X';\n } else {\n setInteractionLocation('fitmentCheckFits');\n pdpCheckFits = 'Check if it fits';\n }\n setShowYmme(true);\n };\n\n const renderFitmentBadge = () => {\n const { itemDescription, vehicleFitFlag, vehicleSpecificFlag, breadCrumbs, recordType } =\n productDetails ?? {};\n const vehicleFits = vehicleFitFlag ?? false;\n const vehicleSpecific = vehicleSpecificFlag ?? false;\n const hideLabel = !vehicleFits && !vehicleSpecific;\n if (recordType !== 'app' || hideLabel) {\n return null;\n }\n\n const { hasVehicle } = props;\n const fittingPartsURL =\n breadCrumbs?.find((item) => item.pageType === 'ProductShelf')?.seoUrl ?? routePaths.blankURL;\n\n return (\n handleShowYmmeFitment(hasVehicle, vehicleFits)}\n onClickSeeFittingParts={() => {\n setPageSpecificData({\n productFindingMethod: 'Product Fitment Banner',\n pfmLocation: 'Product Fitment Banner',\n eventType: 'productFitmentBannerClick',\n });\n router.push(fittingPartsURL);\n }}\n productName={itemDescription}\n />\n );\n };\n\n const renderPdpProductLocation = () => {\n return (\n \n \n {labels.label_DetailsPage_body_Location}{' '}\n \n {productDetails?.location}\n
\n );\n };\n\n // Button add to cart\n const buttonAddToCart = () => {\n if (locale === countryCodes.ptBr) {\n return null;\n }\n\n const isMxWeb = locale === countryCodes.mx;\n const skuPricingAndAvailability = skuDetailsData?.skuPricingAndAvailability;\n const quantityInCart = productData?.quantityInCart ?? 0;\n const addedToCart = quantityInCart > 0;\n const customizeSKUs = skuPricingAndAvailability?.configurableSku;\n const preferredVehicle = props.preferredVehicle;\n const storeSelected = skuDetailsData?.storeSelected;\n const ariaLabelAddProductToCart = `${labels.lblAdd} ${productDetails?.itemDescription} ${labels.lblToCart}`;\n const ariaLabelCheckNearbyStores = `${labels.label_check_nearby_stores} ${labels.label_for} ${productDetails?.itemDescription} `;\n const ariaLabelUpdateCartWithQuantityProduct = interpolateLabel(\n labels.labelUpdateCartToProductItems,\n {\n quantity: props.count,\n product: productDetails?.itemDescription,\n }\n );\n\n let storeData = skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions?.find(\n (item: { groupTypeId: number; sisterStoreAvailable: boolean }) => {\n return item.groupTypeId === props.groupId;\n }\n );\n\n const calcButtonLabel = () => {\n if (customizeSKUs && preferredVehicle) {\n return labels.customizeYourFloorMats;\n }\n if (customizeSKUs && !preferredVehicle) {\n return labels.lblSetVehicleToSeePricing;\n }\n\n const isStoreOrder = fulfillmentId === FULFILLMENT_METHODS.STOREORDER;\n\n if (\n storeData?.sisterStoreAvailable &&\n !storeData?.available &&\n isStoreOrder &&\n checkoutNearbyStoresEnabled\n ) {\n return labels.label_check_nearby_stores;\n }\n if (addedToCart || productAddedToCart) {\n if (productEdited && (updateCartEnabled || isBopusMexicoStoreEnabled)) {\n return labels.label_update_cart;\n } else {\n return labels.lblGoToCart;\n }\n }\n\n if (isMxWeb && !storeSelected) {\n return labels.labelSeeProductPrice;\n }\n return labels.lblAddToCart;\n };\n const calcAriaLabel = () => {\n if (customizeSKUs && preferredVehicle) {\n return labels.customizeYourFloorMats;\n }\n if (customizeSKUs && !preferredVehicle) {\n return labels.lblSetVehicleToSeePricing;\n }\n const isStoreOrder = fulfillmentId === FULFILLMENT_METHODS.STOREORDER;\n if (\n storeData?.sisterStoreAvailable &&\n !storeData?.available &&\n isStoreOrder &&\n checkoutNearbyStoresEnabled\n ) {\n return ariaLabelCheckNearbyStores;\n }\n if (addedToCart || productAddedToCart) {\n if (productEdited && (updateCartEnabled || isBopusMexicoStoreEnabled)) {\n return ariaLabelUpdateCartWithQuantityProduct;\n } else {\n return labels.lblGoToCart;\n }\n }\n\n if (isMxWeb && !storeSelected) {\n return labels.labelSeeProductPrice;\n }\n return ariaLabelAddProductToCart;\n };\n\n const handleOnClick = () => {\n let storeData = skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions?.find(\n (item: { groupTypeId: number; sisterStoreAvailable: boolean }) => {\n return item.groupTypeId === props.groupId;\n }\n );\n const isStoreOrder = fulfillmentId === FULFILLMENT_METHODS.STOREORDER;\n if (storeData?.sisterStoreAvailable && !storeData?.available && isStoreOrder) {\n sisterStoreContext.toggleSisterStoreFlyout({\n skuId: skuPricingAndAvailability?.skuId ?? '',\n shippingType: props.shippingType,\n productDetails: skuDetailsData ?? undefined,\n quantityInCart: productData?.quantityInCart ?? 0,\n });\n } else if (isMxWeb && !storeSelected) {\n return toggleStoreModal();\n } else if (customizeSKUs && preferredVehicle) {\n const availability = storeData?.availableQty.toString();\n const fulfillmentId = storeData?.fulfillmentTypeId.toString();\n trackCustomizeSkuStart(productDetails!, skuDetailsData!, fulfillmentId!, availability!);\n\n return props.openConfigurableSku();\n } else if (customizeSKUs && !preferredVehicle) {\n setShowYmme(true);\n return;\n } else if (productEdited && (updateCartEnabled || isBopusMexicoStoreEnabled)) {\n return updateCart();\n } else if (productAddedToCart) {\n return goToCart();\n } else {\n return addToCart();\n }\n };\n\n const disabled = addToCartDisabled();\n const storeAndAddToCartObj = {\n disabled,\n onClick: () => {\n handleOnClick();\n },\n };\n\n return (\n \n \n {calcButtonLabel()}\n \n {storeModalOpen && }\n \n );\n };\n\n const showMonetateRewardsFlag = useMonetateDecisionFlag('displayBonusRewardsBadge');\n\n const startDate = productDetails?.bonusRewardStartDate ?? '';\n const endDate = productDetails?.bonusRewardEndDate ?? '';\n\n const eligibilityDates = useMemo(\n () => getEligibilityDates(startDate, endDate),\n [startDate, endDate]\n );\n const isEligibleNow = isWithinEligibilityPeriod(eligibilityDates);\n const rewardsEligible = isEligibleNow && productDetails?.bonusRewardEligible;\n\n const showRewardsBadge = showMonetateRewardsFlag && isUS && rewardsEligible;\n\n const pdpRightContent = () => {\n const productTitle = productDetails?.itemDescription ?? '';\n const productBrand = productDetails?.brandName ?? '';\n const brandURL = productDetails?.brandUrl ?? '';\n const catalogRefIdNew = productDetails?.itemId ?? '';\n const vehicleFits = productDetails?.vehicleFitFlag ?? false;\n const dealAvailable = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.dealAvailable\n : skuDetailsData?.aZBadgesFlagVO?.dealAvailable;\n\n return (\n
\n {showRewardsBadge && (\n
\n \n
\n )}\n
\n \n \n \n {pdpRatingPartWarrantyLocation(catalogRefIdNew, productDetails, skuDetailsData)}\n
\n {renderFitmentBadge()}\n {productDetails?.location &&\n vehicleFits &&\n props.hasVehicle &&\n renderPdpProductLocation()}\n {props.hasVehicle && !shouldDisplaySuperSkus && techNotesDisplayRender(productDetails)}\n
\n
\n
\n {pdpPriceQuantityToggle(dealAvailable)}\n {buttonAddToCart()}\n {pdpDealsButton()}\n {displayDeals()}\n
\n
\n );\n };\n\n useEffect(() => {\n const setStoreAndAddToCart = async () => {\n const { setGroupId, groupId, count } = props;\n const { fulfillmentOptions } = skuDetailsData ?? {};\n const fullFillmaxQuantity =\n fulfillmentOptions?.find((option) => option.groupId == FULFILLMENT_METHODS.STOREORDER)\n ?.maxAvailableQty ?? 0;\n props.setShippingType(cartConstants.STOREORDER);\n changeShippingTypeV2(\n cartConstants.STOREORDER,\n FULFILLMENT_METHODS.STOREORDER,\n fullFillmaxQuantity\n );\n setGroupId(FULFILLMENT_METHODS.STOREORDER);\n if (groupId === FULFILLMENT_METHODS.STOREORDER) {\n const quantity = Number(sessionStorage.getItem('quantity'));\n const sanitizedQuantity = isNaN(quantity) ? count : quantity;\n skuDetailsData?.itemPresentInCart\n ? updateCart(sanitizedQuantity)\n : addToCart(sanitizedQuantity);\n sessionStorage.removeItem('addOrUpdateCart');\n sessionStorage.removeItem('skuId');\n sessionStorage.removeItem('quantity');\n sessionStorage.removeItem('productId');\n sessionStorage.removeItem('storeNumber');\n }\n };\n\n if (\n sessionStorage.getItem('addOrUpdateCart') === 'true' &&\n sessionStorage.getItem('skuId') === productDetails?.itemId &&\n !sisterStoreContext.isSettingNewStore\n ) {\n setStoreAndAddToCart();\n }\n }, [\n productDetails?.itemId,\n changeShippingTypeV2,\n props,\n skuDetailsData,\n updateCart,\n addToCart,\n sisterStoreContext.isSettingNewStore,\n ]);\n\n useEffect(() => {\n setTimeout(() => {\n if (\n document.getElementsByClassName('bv_avgRating')?.[0] &&\n document.getElementsByClassName('bv_numReviews_text') !== null &&\n document.getElementsByClassName('bv_numReviews_text')[0]\n ) {\n const rating = (document.getElementsByClassName('bv_avgRating')[0] as HTMLElement)\n .innerText;\n const reviewCount = (\n document.getElementsByClassName('bv_numReviews_text')[0] as HTMLElement\n ).innerText;\n analyticsPDPReviewRating(rating, reviewCount);\n }\n\n const pageType = router.query.pageType ?? '';\n if (pageType === pageTypes.ProductDetail) {\n ratingView();\n }\n }, 1000);\n }, [router.query]);\n\n useEffect(() => {\n const allFulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability.skuAvailabilityInfo.fulfillmentOptions;\n const storePickupAvailable = checkAvailabilityByGroupTypeId(\n allFulfillmentOptions,\n FULFILLMENT_METHODS.STOREORDER\n );\n const { storePickupStockLabel = '' } = skuDetailsData?.skuPricingAndAvailability ?? {};\n if (\n storePickupAvailable &&\n (storePickupStockLabel === productInfoConstants.outOfStock ||\n storePickupStockLabel === productInfoConstants.notAvailable)\n ) {\n props.changeFindProduct();\n }\n }, [props, skuDetailsData?.skuPricingAndAvailability]);\n\n useEffect(() => {\n skuAvailableQuantities.current = getAllAvailableQuantitiesForSku(\n skuDetailsData?.fulfillmentOptions\n );\n }, [skuDetailsData?.fulfillmentOptions]);\n\n useEffect(() => {\n if (props.pdpAddToCartSuccess) {\n if (!isDesktop) {\n callToCertona({\n certonaType: certonaPageType.cartAdd,\n vehicleID: catalogVehicleId || '',\n skuIds: productDetails?.itemId,\n });\n }\n }\n }, [catalogVehicleId, productDetails?.itemId, props.pdpAddToCartSuccess, isDesktop]);\n\n useEffect(\n () => {\n if (\n productDetails?.itemId !== prevSkuId ||\n (props.shippingType !== props.prevShippingType && !productEdited)\n ) {\n const { quantityInCart = 0, skuPricingAndAvailability } = skuDetailsData ?? {};\n const startCount = quantityInCart > 0 ? quantityInCart : 1;\n const currentPrice = getStaticFormattedPrice(\n skuPricingAndAvailability?.configurableSku,\n skuPricingAndAvailability\n );\n props.setCount(startCount);\n props.setQuantityInCart(quantityInCart);\n props.setRetailPrice(getFormattedPriceMultiplied(currentPrice, startCount));\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n productDetails?.itemId,\n productEdited,\n props.shippingType,\n props.prevShippingType,\n skuDetailsData,\n prevSkuId,\n ]\n );\n\n useEffect(\n () => {\n if (\n !props.shippingType ||\n props.productDetailsUpdatedAt !== prevProductDetailsUpdate ||\n props.skuDetailsDataLastUpdatedAt !== prevSkuDetailsUpdate\n ) {\n const { quantityInCart = 0, skuPricingAndAvailability } = skuDetailsData ?? {};\n const startCount = quantityInCart > 0 ? quantityInCart : 1;\n const currentPrice = getStaticFormattedPrice(\n skuPricingAndAvailability?.configurableSku,\n skuPricingAndAvailability\n );\n props.setCount(startCount);\n props.setQuantityInCart(quantityInCart);\n props.setRetailPrice(getFormattedPriceMultiplied(currentPrice, startCount));\n\n if (!props.shippingTypeChanged) {\n setProductEdited(false);\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n props.shippingType,\n props.productDetailsUpdatedAt,\n props.skuDetailsDataLastUpdatedAt,\n skuDetailsData,\n prevProductDetailsUpdate,\n prevSkuDetailsUpdate,\n ]\n );\n\n const handleFulfillmentIdUpdate = useCallback(\n (newFulfillmentId: number) => {\n props.setFulfillmentId(newFulfillmentId);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n\n useEffect(() => {\n if (!props.shippingTypeChanged && !productEdited) {\n const quantityInCart = skuDetailsData?.quantityInCart ?? 0;\n const allFulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability.skuAvailabilityInfo.fulfillmentOptions;\n const selectedFulfillmentId = getSelectedFulfilmentForSelectedQty(\n props.count,\n allFulfillmentOptions,\n props.shippingType\n );\n if (quantityInCart > 0 && selectedFulfillmentId) {\n handleFulfillmentIdUpdate(selectedFulfillmentId);\n } else if (\n fulfillmentId === FULFILLMENT_METHODS.NEXTDAY &&\n props.count > skuAvailableQuantities.current.nddQuantity\n ) {\n handleFulfillmentIdUpdate(FULFILLMENT_METHODS.ONLINEORDER);\n }\n }\n }, [\n handleFulfillmentIdUpdate,\n props.shippingTypeChanged,\n props.count,\n props.shippingType,\n shouldShowSkeleton,\n fulfillmentId,\n skuDetailsData,\n productEdited,\n ]);\n\n useEffect(\n () => {\n if (\n !shouldShowSkeleton &&\n (!props.shippingType ||\n props.productDetailsUpdatedAt !== prevProductDetailsUpdate ||\n props.skuDetailsDataLastUpdatedAt !== prevSkuDetailsUpdate)\n ) {\n const quantityInCart = skuDetailsData?.quantityInCart ?? 0;\n const allFulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability.skuAvailabilityInfo.fulfillmentOptions;\n const shipToHomeAvailable = checkAvailabilityByGroupTypeId(\n allFulfillmentOptions,\n FULFILLMENT_METHODS.ONLINEORDER\n );\n const storePickupAvailable = checkAvailabilityByGroupTypeId(\n allFulfillmentOptions,\n FULFILLMENT_METHODS.STOREORDER\n );\n if (quantityInCart > 0) {\n const selectedFulfillmentOption = allFulfillmentOptions?.find(\n (option) => option.selected\n );\n const startGroupId = selectedFulfillmentOption?.groupTypeId ?? -1;\n const startShippingType = convertFulfillmentTypeToOrderType(startGroupId);\n props.setShippingType(startShippingType);\n props.setGroupId(startGroupId);\n\n const selectedFulfillmentId = getSelectedFulfilmentForSelectedQty(\n props.count,\n allFulfillmentOptions,\n props.shippingType\n );\n const fulfillmentIdInCart = getSelectedFulfillmentInCart(\n props.count,\n allFulfillmentOptions\n );\n const addedToCart = quantityInCart > 0;\n if (\n (fulfillmentIdInCart !== selectedFulfillmentId ||\n (fulfillmentIdInCart === undefined && selectedFulfillmentId === undefined)) &&\n !props.shippingTypeChanged &&\n !(productAddedToCart || addedToCart)\n ) {\n const storePickupFulfillmentId = storePickupAvailable\n ? FULFILLMENT_METHODS.STOREORDER\n : '';\n const availableFulfillmentId =\n startGroupId === FULFILLMENT_METHODS.ONLINEORDER && shipToHomeAvailable\n ? selectedFulfillmentId ?? FULFILLMENT_METHODS.ONLINEORDER\n : storePickupFulfillmentId;\n if (availableFulfillmentId) {\n handleFulfillmentIdUpdate(availableFulfillmentId);\n setProductEdited(true);\n }\n } else if (!sisterStoreContext.isSisterStoreFlyoutOpen) {\n handleFulfillmentIdUpdate(selectedFulfillmentId!);\n setProductEdited(false);\n }\n } else if (!props.shippingTypeChanged || props.storeChanged) {\n if (props.storeChanged) {\n props.setStoreChanged(false);\n }\n const { nddQuantity, sddQuantity } = skuAvailableQuantities.current;\n let storeData = allFulfillmentOptions?.find(\n (option) => option.groupTypeId === FULFILLMENT_METHODS.STOREORDER\n );\n const defaultShippingId = getFulfillmentId(\n shipToHomeAvailable,\n storePickupAvailable,\n props.defaultFulfillmentOption,\n nddQuantity > 0,\n sddQuantity > 0,\n storeData?.sisterStoreAvailable\n );\n const selectedShippingType = getFulfillmentOption(\n shipToHomeAvailable,\n storePickupAvailable,\n props.defaultFulfillmentOption,\n locale\n );\n handleFulfillmentIdUpdate(defaultShippingId);\n\n const isNotAvailable = allFulfillmentOptions?.every(\n (option) => option.available === false\n );\n const sisterStoreAvailable = allFulfillmentOptions?.[0]?.sisterStoreAvailable ?? false;\n if (isNotAvailable && sisterStoreAvailable) {\n props.setShippingType(cartConstants.STOREORDER);\n } else {\n props.setShippingType(selectedShippingType);\n }\n props.setGroupId(\n selectedShippingType === cartConstants.ONLINEORDER\n ? FULFILLMENT_METHODS.ONLINEORDER\n : FULFILLMENT_METHODS.STOREORDER\n );\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n handleFulfillmentIdUpdate,\n prevProductDetailsUpdate,\n prevSkuDetailsUpdate,\n skuDetailsData,\n productAddedToCart,\n props.shippingType,\n props.productDetailsUpdatedAt,\n props.shippingTypeChanged,\n sisterStoreContext.isSisterStoreFlyoutOpen,\n shouldShowSkeleton,\n ]\n );\n\n if (!skuDetailsData && !shouldShowSkeleton) {\n return null;\n }\n\n return (\n <>\n \n ) : (\n <>\n \n \n )\n }\n rightContent={shouldShowSkeleton ? : pdpRightContent()}\n />\n setShowYmme(false)}\n pageType={pdpCheckFits}\n onUpdateVehicleSuccess={() => setShowYmme(false)}\n />\n \n );\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { createItemFulfillmentAvailabilityString } from '@/utils/itemHelpers/fulfillmentHelpers/createItemFulfillmentAvailabilityString';\nimport { type ProductSkuDetails } from '@/features/product';\nimport type { SkuDealsFromAPI } from '@/types/availability';\nimport { type ProductModel } from '@/api/types/products-types';\nimport { determineOptionsToDisplayButtons } from '@/features/fulfillment/api/optionsToDisplay';\n\nconst productDetailAnalytics = ({\n productDetails,\n skuDetailsData,\n autoCorrectedKeyword,\n vehicleId,\n fitsVehicle,\n searchRedirectText,\n vehicleSpecific,\n hasDealBadge,\n isNewDealsApiEnabled,\n skuDealsData,\n}: {\n productDetails: ProductModel;\n skuDetailsData: ProductSkuDetails | null;\n autoCorrectedKeyword: string;\n vehicleId: string;\n fitsVehicle: boolean;\n vehicleSpecific: boolean;\n searchRedirectText: string;\n hasDealBadge: boolean | undefined;\n isNewDealsApiEnabled: boolean;\n skuDealsData: SkuDealsFromAPI[] | undefined;\n}): {\n autoCorrectedKeyword: string;\n nddaftercutoff: Array;\n productPartTypeIdList: Array;\n sthSpecialOrderList: any[];\n dealBundleCountList: Array;\n bopusList: boolean[];\n dealFlag: boolean;\n fulfillmentAvailabilityList: Array;\n nddEligibleList: boolean[];\n originalPartTypeId: string | undefined;\n productBrand: string | undefined;\n productCorePrice: string;\n productId: string;\n productPartNumberList: Array;\n productLineCode: string;\n productNotAvailable: boolean;\n productPart: string | undefined;\n productPrice: string;\n productRepositoryId: string | undefined;\n sthList: boolean[];\n sthSpecialOrder: boolean;\n vdp: boolean;\n searchResultCount?: string;\n clearanceList: Array;\n sisterStoreAvailableList: Array;\n productFitmentCheckMessage: Array;\n productDealMessage: string[];\n productFulfillmentOptionSeenByCustomer: string[];\n} => {\n const {\n partTypeName,\n itemId,\n lineCode,\n partNumber,\n subBrandName,\n originalPartTypeId,\n ecommProductId,\n } = productDetails ?? {};\n const productId = itemId;\n const productLineCode = lineCode ?? '';\n let productNotAvailable = false;\n let originalPartTypeIdFromShelfData = '';\n let productRepositoryIdFromShelfData = '';\n const fulfillmentAvailabilityList: string[] = [];\n const nddaftercutoff: string[] = [];\n const productPartTypeIdList: string[] = [];\n const sthSpecialOrderList: any[] = [];\n const clearanceList: string[] = [];\n const sisterStoreAvailableList: string[] = [];\n const productFitmentCheckMessage: string[] = [];\n const productDealMessage: string[] = [];\n const fulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo.fulfillmentOptions;\n\n const sisterStoreAvailable = fulfillmentOptions?.filter((option) => {\n return option.sisterStoreAvailable === true;\n });\n\n if (fulfillmentOptions) {\n // @ts-expect-error\n fulfillmentAvailabilityList.push(createItemFulfillmentAvailabilityString(fulfillmentOptions));\n }\n\n if (sisterStoreAvailable?.length) {\n sisterStoreAvailableList.push('1');\n } else {\n sisterStoreAvailableList.push('');\n }\n\n !fitsVehicle && !vehicleSpecific\n ? productFitmentCheckMessage.push('')\n : !vehicleId\n ? productFitmentCheckMessage.push('check if this fits your vehicle')\n : fitsVehicle\n ? productFitmentCheckMessage.push('fits your vehicle')\n : productFitmentCheckMessage.push(\"doesn't fit your vehicle\");\n\n const dealBundleCountList =\n skuDetailsData?.skuPricingAndAvailability?.dealsAvailableQty &&\n skuDetailsData?.skuPricingAndAvailability?.dealsAvailableQty !== 0\n ? [skuDetailsData.skuPricingAndAvailability.dealsAvailableQty.toString()]\n : [''];\n const dealAvailable =\n (skuDetailsData?.skuPricingAndAvailability?.dealsAvailableQty ?? 0) > 0 ? true : false;\n const discountAmount =\n parseFloat(String(skuDetailsData?.skuPricingAndAvailability?.wasRetailPrice)) -\n parseFloat(String(skuDetailsData?.skuPricingAndAvailability?.retailPrice));\n if (\n isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.dealAvailable || discountAmount\n : dealAvailable && hasDealBadge\n ) {\n const discountCalc = discountAmount\n ? Math.floor(\n 100 *\n (discountAmount /\n parseFloat(String(skuDetailsData?.skuPricingAndAvailability?.wasRetailPrice)))\n )\n : 0;\n const discountDisplay =\n discountAmount > discountCalc ? `$${discountAmount}` : `${discountCalc}%`;\n if (skuDealsData?.[0]?.skuDealsInfo?.dealAvailable && discountAmount) {\n productDealMessage.push(\n `${\n skuDealsData?.[0]?.skuDealsInfo?.dealConfigurableLabel || 'See Available Deals'\n } - Save ${discountDisplay}`\n );\n } else if (skuDealsData?.[0]?.skuDealsInfo?.dealAvailable) {\n productDealMessage.push(\n `${skuDealsData?.[0]?.skuDealsInfo?.dealConfigurableLabel || 'See Available Deals'}`\n );\n } else {\n productDealMessage.push(`Save ${discountDisplay}`);\n }\n } else {\n productDealMessage.push('');\n }\n const bopusList = [skuDetailsData?.skuPricingAndAvailability?.storePickupAvailable ?? false];\n const nddEligibleList = [skuDetailsData?.aZBadgesFlagVO?.eligibleForNextDay ?? false];\n const sthList = [skuDetailsData?.skuPricingAndAvailability?.shipToHomeAvailable ?? false];\n const dealFlag = skuDetailsData?.skuPricingAndAvailability?.dealAvailable ?? false;\n const productPrice = (\n skuDetailsData?.skuPricingAndAvailability?.retailPrice.toString() ?? ''\n ).toString();\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo?.clearanceItem\n ? clearanceList.push('1')\n : clearanceList.push('0');\n const sthSpecialOrder = skuDetailsData?.skuPricingAndAvailability?.specialOrder ?? false;\n const vdp =\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo?.availableInVdpStore ?? false;\n const productCorePrice = skuDetailsData?.skuPricingAndAvailability?.corePrice.toString() ?? '';\n\n if (!bopusList[0] && !sthList[0]) {\n productNotAvailable = true;\n } else {\n productNotAvailable = false;\n }\n\n const [bopus, sth, ndd] = determineOptionsToDisplayButtons(skuDetailsData?.fulfillmentOptions);\n const productFulfillmentOptionSeenByCustomer = [\n [bopus, sth, ndd]\n .filter((option) => option?.available)\n .map((option) => String(option?.fulfillmentTypeIdOriginal))\n .join(':'),\n ];\n\n return {\n autoCorrectedKeyword,\n nddaftercutoff,\n productPartTypeIdList,\n sthSpecialOrderList,\n dealBundleCountList,\n productPart: partTypeName,\n productId,\n productPartNumberList: [partNumber ?? ''],\n productLineCode,\n productBrand: subBrandName,\n sthSpecialOrder,\n productPrice,\n dealFlag,\n productCorePrice,\n productNotAvailable,\n vdp,\n fulfillmentAvailabilityList,\n bopusList,\n sthList,\n nddEligibleList,\n originalPartTypeId: originalPartTypeIdFromShelfData\n ? originalPartTypeIdFromShelfData\n : originalPartTypeId,\n productRepositoryId: productRepositoryIdFromShelfData\n ? productRepositoryIdFromShelfData\n : ecommProductId,\n ...(!!searchRedirectText && {\n searchResultCount: '1',\n }),\n productFitmentCheckMessage,\n sisterStoreAvailableList,\n clearanceList,\n productDealMessage,\n productFulfillmentOptionSeenByCustomer,\n };\n};\n\nexport default productDetailAnalytics;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { useEffect } from 'react';\nimport Router, { useRouter } from 'next/router';\nimport { parseUrl } from '@/utils/urlHelpers';\nimport { isEmptyObject } from '@/utils/common';\n\ntype UseHandleRedirectProps = {\n redirectPath?: string;\n};\n\nexport const useHandleRedirect = ({ redirectPath }: UseHandleRedirectProps) => {\n const router = useRouter();\n\n useEffect(() => {\n if (!redirectPath) {\n return;\n }\n\n const updatedRedirect =\n router.query.searchText && !redirectPath.includes('searchText')\n ? `${redirectPath}?searchText=${router.query.searchText as string}`\n : router.query.filterByKeyWord &&\n !redirectPath.includes('filterByKeyWord') &&\n !redirectPath.includes('searchText')\n ? `${redirectPath}?searchText=${router.query.filterByKeyWord as string}`\n : redirectPath;\n\n const parsedPath = parseUrl(updatedRedirect);\n let searchParams = {};\n let sanitizedPath = updatedRedirect;\n\n if (!isEmptyObject(parsedPath?.query)) {\n searchParams = parsedPath.query;\n sanitizedPath = parsedPath.url;\n }\n\n const hash = router.asPath.includes('#') ? router.asPath.split('#')[1] : '';\n\n void Router.replace(\n {\n pathname: sanitizedPath,\n query: searchParams,\n hash,\n },\n undefined\n );\n }, [redirectPath, router.asPath, router.query]);\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { eventTypes } from '@/constants/event';\nimport { routePaths } from '@/constants/routePaths';\nimport { selectOrderDetailsFromState } from '@/constants/selectors';\nimport type {\n PageSpecificAnalyticsDataType,\n QOHErrorAnalytics,\n QohErrorAnalyticsData,\n} from '@/types/analytics';\nimport {\n CMSModularHandler,\n hasCMSPremiumTable,\n SEOProductSchema,\n ProductDetailMetadata,\n} from '@/features/pdp';\nimport { useContentStackDefaultPDPContent } from '@/features/pdp/api/getContentStackDefaultProductContent';\nimport { useContentStackPremiumPDPContent } from '@/features/pdp/api/getContentStackPremiumProductContent';\nimport { useAnalytics } from '@/utils/analytics/useAnalytics';\nimport { usePageViewCall } from '@/utils/analytics/usePageViewCall';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport { analyticsPageType } from '@/constants/analytics/analyticsPageType';\nimport { searchAnalyticsKeys } from '@/constants/analytics/pageSpecificRemoveAnalyticsKeys';\nimport { analyticsDynamicPageName } from '@/utils/analytics/legacyUtils/analyticsDynamicPageName';\nimport { getPageName } from '@/utils/analytics/legacyUtils/getPageName';\nimport { getSeoPageType } from '@/utils/analytics/legacyUtils/getSeoPageType';\nimport { pageTypes } from '@/utils/analytics/legacyUtils/pageTypes';\nimport { getAnalyticsRelativeComplementOf } from '@/utils/analytics/getAnalyticsRelativeComplementOf';\nimport { getProductStrikethroughAnalyticValue } from './analytics/getProductStrikethroughAnalyticValue';\nimport { type AddCertonaItemObjectType } from '@/features/certona';\nimport { useAddToCartWithMiniCart } from '@/features/certona/hooks/useAddToCartWithMiniCart';\nimport { useGetCertonaRecommendations } from '@/features/certona/api/useGetCertonaRecommendations';\nimport { certonaPageType } from '@/constants/certonaPageType';\nimport { FeatureFlag, useFeatureFlag } from '@/features/globalConfig';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useIsStoreSelected } from '@/features/header/hooks/useIsStoreSelected';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { PreFooter } from '@/features/prefooter';\nimport { useProductSkuDeals } from '@/features/product/api/getProductDeals';\nimport { useSylvaniaVideos } from '@/features/product/api/getSylvaniaVideos';\nimport { useProductDetails } from '@/features/product/api/getProductDetails';\nimport { useProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { useScrollIntoViewDOM } from '@/hooks/useScrollIntoView';\nimport { useRouter } from 'next/router';\nimport type { ReduxState } from '@/types';\nimport { convertOrderTypeToFulfillmentType } from '@/utils/itemHelpers/lineItemHelpers/convertOrderTypeToFulfillmentType';\nimport { getMaxAvailQtyFromOptions } from '@/utils/itemHelpers/fulfillmentHelpers/getMaxAvailQtyFromOptions';\nimport { sessionStorage } from '@/utils/sessionStorage';\nimport { getPathnameFromAsPath, stringifyUrl } from '@/utils/urlHelpers';\nimport { useEffect, useState, Suspense, useMemo, useRef, useCallback } from 'react';\nimport { useSelector } from 'react-redux';\nimport root from 'window-or-global';\nimport LeftSectionSkeletonLoading from '../../components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/LeftSection';\nimport RightSectionSkeletonLoading from '../../components/ProductDetail/ProductAvailabilityInfo/SkeletonLoading/RightSection';\nimport actionTypes from '../../types/action';\nimport usePrevious from '../../utils/usePrevious';\nimport ErrorPage from '../ErrorPage';\nimport Hidden from '../Hidden';\nimport { accessoriesOptions } from './accessoriesOptions';\nimport ProductAvailabilityInfo from './ProductAvailabilityInfo/';\nimport ProductAvailabilityInfoSkeleton from './ProductAvailabilityInfo/ProductAvailabilityInfoSkeleton';\nimport productDetailAnalytics from './productDetailAnalytics';\nimport styles from './styles.module.scss';\nimport { DealDrawer } from '@/features/deals/components/DealDrawer/DealDrawer';\nimport { type FULFILLMENT_METHODS } from '@/constants/fulfillmentConstants';\nimport { DynamicLinks } from '@/features/dlm/components/DynamicLinks';\nimport { useDispatch } from '@/hooks/redux/useDispatch';\nimport { Drawer } from '../Drawer/Drawer';\nimport { siteSections } from '@/utils/siteSections';\nimport { TrapFocus } from '../Dialog/Modal/TrapFocus';\nimport { useAutoCloseOnOrderReady } from '@/features/sisterStoreFlyout';\nimport dynamic from 'next/dynamic';\nimport ProgressModal from '@/components/AZCustomComponent/ProgressModal';\nimport { formatPartTypeId } from '@/utils/formatPartTypeId';\nimport { type SylvaniaVideoModel } from '@/api/types/products-types';\nimport { View } from '@az/starc-ui';\nimport { fetchPaymentOptions } from '@/actions/checkout';\nimport {\n getCurrencySymbol,\n getFormattedPriceMultiplied,\n getStaticFormattedPrice,\n} from '@/utils/priceHelpers';\nimport { useHandleRedirect } from '@/features/pdp/hooks/useHandleRedirect';\nimport { type ShippingType } from '@/features/fulfillment';\nimport { useContentStackLivePreview } from '@/hooks/useContentStackLivePreview';\nimport { usePageSpecificData } from '@/utils/analytics/usePageSpecificData';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\n\nconst LazyMiniCart = dynamic(\n () => import('../Cart/MiniCartModal').then((mod) => mod.MiniCartModal),\n {\n loading: () => ,\n }\n);\n\nconst LazyMiniCartFlyoutComp = dynamic(\n () =>\n import('@/features/miniCartFlyout/components/MiniCartFlyoutComp').then(\n (mod) => mod.MiniCartFlyoutComp\n ),\n {\n loading: () => ,\n }\n);\n\nconst LazyProductCustomizableSKU = dynamic(\n () =>\n import('@/features/pdp/components/ProductCustomizableSKU').then(\n (mod) => mod.ProductCustomizableSKU\n ),\n {\n loading: () => ,\n }\n);\n\ntype AnalyticsViewPayload = {\n categoryLevel1: string;\n categoryLevel2: string;\n categoryLevel3: string;\n categoryLevel4: string;\n pageName: string;\n siteSection: string;\n pageType: string;\n pageHierarchy: string;\n seoPageType?: string;\n seoPopularSearches?: boolean;\n seoPopularSearchesClick: boolean;\n autoCorrectedKeyword: string;\n vehicleId?: string;\n fitsVehicle?: boolean;\n prodView: string;\n skuView: Array;\n productFindingMethod?: string;\n pfmLocation?: string;\n productStrikeThroughPricing: string[];\n searchMethod: string;\n tvVideoName: string;\n videoAvailable: boolean;\n productRank?: string | number | null | undefined;\n vehicleSpecificImage: boolean;\n};\n\ntype WarrantyModal = {\n isShown: boolean;\n showModalFrom?: string;\n warrantyType?: string;\n};\n\nconst { siteSectionPdp, siteSectionCatalog } = siteSections;\nconst trackSortFilter = () => {\n clickTrack({\n eventType: 'sortReviewsOptionsInteractionPDP',\n });\n};\n\nconst trackPdpQoHFailure = (qohErrorAnalyticsData: QohErrorAnalyticsData) => {\n const { pageName = '', pageType = '', siteSection = '' } = root.utag_data || {};\n const data: QOHErrorAnalytics = {\n eventType: 'addToCartQohError',\n pageName,\n pageType,\n siteSection,\n originalPartTypeIdList: [qohErrorAnalyticsData.originalPartTypeId ?? ''],\n productAvailableQuantityList: [qohErrorAnalyticsData.productAvailableQuantity.toString() ?? ''],\n productBrandList: qohErrorAnalyticsData.productBrandList,\n productCorePriceList: qohErrorAnalyticsData.productCorePriceList,\n productDiscountPriceList: [''],\n productFulfillmentTypeList: [\n convertOrderTypeToFulfillmentType(qohErrorAnalyticsData.orderType).toString() ?? '',\n ],\n productIdList: [qohErrorAnalyticsData.skuNumber ?? ''],\n productPartList: [''],\n productPartNumberList: [qohErrorAnalyticsData.partNumber ?? ''],\n productPriceList: [qohErrorAnalyticsData.productPrice.toString() ?? ''],\n productRepositoryIdList: qohErrorAnalyticsData.productRepositoryId.toString(),\n productRequestedQuantityList: [qohErrorAnalyticsData.requestQuantity.toString()],\n qohErrorMessage: [qohErrorAnalyticsData.errorMessage],\n qohErrorMsgType: ['PDP QOH'],\n };\n clickTrack(data);\n};\n\nconst getSylvaniaVideoNames = (videos: SylvaniaVideoModel[] | undefined) => {\n if (!videos) {\n return '';\n }\n const videoNames: string[] = [];\n videos.forEach((video) => {\n video.videos.forEach((singleVideo) => {\n videoNames.push(singleVideo.title);\n });\n });\n return videoNames.join('|');\n};\n\nfunction ProductDetail() {\n const {\n addToCartCall,\n clearProductPageData,\n changeFindProduct,\n addingToCartStatus,\n productData,\n cartSuccess,\n err: addToCartErr,\n setQuantityInCart,\n } = useAddToCartWithMiniCart();\n const { fulfillmentTypeId, quantity, cartSuccessNote, quantityInCart } = productData;\n\n const isSuperSkusEnabled = useFeatureFlag('IS_SUPER_SKUS_ENABLED') === 'true';\n const isCertonaEnabledForOosOrDoesNotFit =\n useFeatureFlag('IS_OOS_OR_DOES_NOT_FIT_CONTAINER_ENABLED') === 'true';\n const isUtagDefined = useAnalytics();\n const { pageSpecificData, setPageSpecificData } = usePageSpecificData();\n const { productFindingMethod: productFindingMethodFromHook } = pageSpecificData;\n const callPageView = usePageViewCall();\n useScrollIntoViewDOM([]);\n const preferredVehicle = usePreferredVehicle();\n const router = useRouter();\n const dispatch = useDispatch();\n const lazyMiniCartModalRef = useRef(null);\n const [analyticsExecuted, setAnalyticsExecuted] = useState(false);\n const [miniCartFlyoutVisible, setMiniCartFlyoutVisible] = useState(false);\n const [certonaRecommendationAddedToCart, setCertonaRecommendationAddedToCart] = useState(false);\n const toggleMiniCartFlyout = () => {\n setMiniCartFlyoutVisible(() => !miniCartFlyoutVisible);\n closeStoreModal();\n };\n\n const toggleCertonaMiniCartFlyout = () => {\n setShowCertonaMiniCartFlyoutModal(() => !showCertonaMiniCartFlyoutModal);\n closeStoreModal();\n };\n\n const locale = useLocale();\n const currencySymbol = getCurrencySymbol(locale);\n const [warrantyModal, setWarrantyModal] = useState({ isShown: false });\n const [shouldOpenSpecsPanel, setShouldOpenSpecsPanel] = useState(false);\n const [recommendationsClicked, setRecommendationsClicked] = useState(false);\n const [customizeModalOpen, setCustomizeModalOpen] = useState(false);\n const [addedCertonaItemObject, setAddedCertonaItemObject] =\n useState(null);\n const [showCertonaMiniCartFlyoutModal, setShowCertonaMiniCartFlyoutModal] =\n useState(false);\n /*XM data*/\n\n const cartSuccessData = cartSuccess;\n\n const { data: headerData } = useHeaderData();\n const miniCartMap = headerData?.miniCartMap;\n const minicart = headerData?.miniCartSuccessNote;\n const storeNumber = headerData?.storeNumber;\n const vehicleMap = headerData?.vehicleMap;\n const vehicleId = vehicleMap?.catalogVehicleId;\n const hasVehicle =\n !!headerData?.vehicleMap?.vehicleId && headerData?.vehicleMap?.vehicleId !== '';\n const productDetailsQuery = useProductDetails();\n const { refetch: refetchProductData } = productDetailsQuery;\n const taxonomyPath =\n productDetailsQuery?.data?.product?.cmsContentPath ??\n productDetailsQuery?.data?.product?.taxonomyUrl ??\n '';\n const brandName =\n productDetailsQuery.data?.product?.subBrandName ??\n productDetailsQuery.data?.product?.brandName ??\n '';\n\n const isCSPDPEnabled = productDetailsQuery.isFetched && !productDetailsQuery.isFetching;\n const {\n data: defaultPDPContent,\n isFetched: isDefaultPDPFetched,\n isFetching: isDefaultPDPFetching,\n } = useContentStackDefaultPDPContent({\n enabled: isCSPDPEnabled,\n taxonomyPath,\n });\n\n const {\n data: premiumPDPContent,\n isFetched: isPremiumPDPFetched,\n isLoading: isPremiumPDPLoading,\n } = useContentStackPremiumPDPContent({\n enabled:\n isCSPDPEnabled &&\n !isDefaultPDPFetching &&\n (defaultPDPContent?.premiumBrands?.brands as string[])?.includes(brandName),\n taxonomyPath,\n brandName,\n });\n\n useContentStackLivePreview({ enabled: isCSPDPEnabled });\n\n const isPDPContentFetched =\n !isPremiumPDPLoading && (isDefaultPDPFetched || (isPremiumPDPFetched && taxonomyPath));\n\n const productDetails = productDetailsQuery.data?.product;\n const productSkuId =\n productDetailsQuery.isSuccess && productDetails?.itemId ? [productDetails?.itemId] : null;\n const installVideosEnabled =\n useFeatureFlag('IS_YMME_INSTALL_VIDEOS_ENABLED') === 'true' &&\n productDetails?.lineCode === 'SYL' &&\n !!preferredVehicle;\n const isProductVehicleImageEnabled =\n useFeatureFlag('IS_PRODUCT_VEHICLE_IMAGE_ENABLED') === 'true';\n const partTypeHasVehicleImages =\n defaultPDPContent?.partTypesWithVehicleImages?.includes(\n productDetails?.originalPartTypeId ?? ''\n ) ?? false;\n const isNewDealsApiEnabled = useFeatureFlag('IS_NEW_DEALS_API_ENABLED') === 'true';\n const { data: sylvaniaData, isSuccess: sylvaniaRequestIsSuccess } = useSylvaniaVideos({\n enabled: installVideosEnabled,\n productId: productDetails?.itemId ?? '',\n });\n const productDetailsSEOMetadata = productDetails?.seoMetaData as Record | undefined;\n\n const skuDetailsResult = useProductSkuDetails({\n skuIds: productSkuId,\n });\n const { refetch: refetchSkuDetails } = skuDetailsResult;\n const { data: skuDealsData } = useProductSkuDeals({\n skuIds: productSkuId,\n enabled: isNewDealsApiEnabled,\n });\n const skuDetailsData = skuDetailsResult.isSuccess ? skuDetailsResult.data[0] : null;\n const prevSkuDetailsData = usePrevious(skuDetailsData);\n const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n const isMobile = useMediaQuery((theme) => theme.breakpoints.only('sm'));\n const [dealsAddedToCart, setDealsAddedToCart] = useState(false);\n const [showBundleDeals, setShowBundleDeals] = useState(false);\n const [count, setCount] = useState(skuDetailsData?.quantityInCart || 1);\n\n const staticPrice = useMemo(() => {\n const currentPrice = getStaticFormattedPrice(\n skuDetailsData?.skuPricingAndAvailability.configurableSku,\n skuDetailsData?.skuPricingAndAvailability\n );\n return Number(currentPrice);\n }, [skuDetailsData?.skuPricingAndAvailability]);\n\n const [retailPrice, setRetailPrice] = useState(() =>\n getFormattedPriceMultiplied(staticPrice, count)\n );\n const [groupId, setGroupId] = useState<\n typeof FULFILLMENT_METHODS.STOREORDER | typeof FULFILLMENT_METHODS.ONLINEORDER\n >(0);\n const DLM_PDP_ENABLED = useFeatureFlag('DLM_PDP_ENABLED') === 'true';\n const desktopMiniCartFlyoutEnabled =\n useFeatureFlag('IS_DESKTOP_MINI_CART_FLYOUT_ENABLED') === 'true';\n const mobileMiniCartFlyoutEnabled =\n useFeatureFlag('IS_MOBILE_MINI_CART_FLYOUT_ENABLED') === 'true';\n const tabletMiniCartFlyoutEnabled =\n useFeatureFlag('IS_TABLET_MINI_CART_FLYOUT_ENABLED') === 'true';\n\n const discountedPrice = isNewDealsApiEnabled\n ? skuDealsData?.[0]?.skuDealsInfo?.discountedPrice\n : skuDetailsData?.skuPricingAndAvailability?.discountedPrice;\n const strikeThroughPricingFlag = useFeatureFlag('SHOW_STRIKE_THROUGH_PRICING') === 'true';\n const showStrikeThroughPricing: boolean = strikeThroughPricingFlag && !!discountedPrice;\n\n const shouldShowDealsButton =\n useFeatureFlag('DEAL_DRAWER_PDP_ENABLED') === 'true' &&\n skuDetailsData?.storeSelected &&\n !showStrikeThroughPricing;\n\n const itemFulfillmentOptions =\n skuDetailsData?.skuPricingAndAvailability?.skuAvailabilityInfo?.fulfillmentOptions;\n const hasStoreSelected = useIsStoreSelected();\n const isOos =\n hasStoreSelected &&\n (hasVehicle || (!hasVehicle && productDetails?.recordType !== 'app')) &&\n itemFulfillmentOptions?.some((item) => item.available || item.sisterStoreAvailable) === false;\n\n const doesNotFit =\n hasStoreSelected &&\n hasVehicle &&\n productDetails?.recordType === 'app' &&\n !productDetails.vehicleFitFlag;\n\n const superSkuDoesNotFit =\n hasVehicle && productDetails?.recordType === 'app' && !productDetails.vehicleFitFlag;\n\n const redirectPath = productDetailsQuery.data?.redirectURL;\n const isSuperSkuPage =\n isSuperSkusEnabled && !!productDetails?.choices && !!productDetails.availableOptions;\n\n const isSuperSKUFitmentRedirectEnabled = useMonetateDecisionFlag(\n 'superSKUFitmentRedirectEnabled'\n );\n\n const superSkuRedirectPath =\n isSuperSkuPage &&\n isSuperSKUFitmentRedirectEnabled &&\n productDetails?.choices?.length !== undefined &&\n productDetails.choices.length > 0 &&\n superSkuDoesNotFit\n ? productDetails?.choices?.[0]?.choice.productDetailsPageUrl\n : undefined;\n\n useHandleRedirect({ redirectPath: redirectPath ?? superSkuRedirectPath });\n\n const orderDetailsReadyStatus = useSelector(\n (state: ReduxState) => state?.orders?.details?.readyStatus\n );\n\n const pdpBreadcrumb = productDetails?.breadCrumbs;\n const parentShelfPage = pdpBreadcrumb?.find((item) => item.pageType === 'ProductShelf');\n const fitsVehicle = productDetails?.vehicleFitFlag ?? false;\n const vehicleSpecific = productDetails?.vehicleSpecificFlag ?? false;\n\n /*\n The PDP currently fetches product data on\n the server again after adding an item to cart.\n Certona shouldn't be called again, so this flag is used.\n */\n const [disableCertonaCall, setDisableCertonaCall] = useState(false);\n const defaultFulfillmentOption = useFeatureFlag('DEFAULT_FULFILLMENT_OPTION') || '';\n const crumInfo = (pdpBreadcrumb?.[0]?.displayName ?? '').toLowerCase();\n const isAccessories = accessoriesOptions.includes(crumInfo);\n const orderDetailsFromState = useSelector(selectOrderDetailsFromState);\n const [trackQOHError, setTrackQOHError] = useState(false);\n const [shippingType, setShippingType] = useState('' as ShippingType);\n const [shippingTypeChanged, setShippingTypeChanged] = useState(false);\n const [storeChanged, setStoreChanged] = useState(false);\n const [fulfillmentId, setFulfillmentId] = useState(0);\n const [oemPartNumber, setOemPartNumber] = useState();\n const [oemBrandName, setOemBrandName] = useState();\n const prevShippingType = usePrevious(shippingType);\n const productAvailableQuantity =\n itemFulfillmentOptions && getMaxAvailQtyFromOptions(itemFulfillmentOptions);\n const isRedirect = Boolean(productDetailsQuery.data?.redirectURL);\n const previousPath = usePrevious(router.asPath);\n\n useEffect(() => {\n const handleStoreChanged = () => {\n setStoreChanged(true);\n };\n root.window.addEventListener('preferredStoreUpdated', handleStoreChanged);\n return () => {\n root.window.removeEventListener('preferredStoreUpdated', handleStoreChanged);\n };\n }, []);\n\n useEffect(() => {\n if (addingToCartStatus === 'loading') {\n setPreventLoadingSkeletonFromShowing(true);\n } else if (productDetailsQuery.isSuccess) {\n setPreventLoadingSkeletonFromShowing(false);\n }\n }, [productDetailsQuery.isSuccess, addingToCartStatus]);\n\n useEffect(() => {\n if (!!addedCertonaItemObject) {\n setShowCertonaMiniCartFlyoutModal(true);\n }\n }, [addedCertonaItemObject]);\n\n useEffect(() => {\n let resultsChangesAfterRecommendationsClicked = false;\n if (recommendationsClicked) {\n resultsChangesAfterRecommendationsClicked = skuDetailsData === prevSkuDetailsData;\n }\n let acceptableReadyStatus =\n productDetailsQuery.isSuccess &&\n skuDetailsResult.isSuccess &&\n !isRedirect &&\n !resultsChangesAfterRecommendationsClicked &&\n (!installVideosEnabled || sylvaniaRequestIsSuccess);\n if (!analyticsExecuted && isUtagDefined && pdpBreadcrumb && acceptableReadyStatus) {\n const pdpUtagViewAffinity = sessionStorage.getItem('pdpUtagViewAffinity') === 'true';\n const productFindingMethodFromUtag =\n typeof root.utag_data?.productFindingMethod === 'string'\n ? root.utag_data?.productFindingMethod\n : '';\n const productFindingMethod =\n sessionStorage.getItem('productFindingMethod') ??\n productFindingMethodFromHook ??\n productFindingMethodFromUtag;\n\n const isSuperSkuPage =\n isSuperSkusEnabled && !!productDetails?.choices && !!productDetails.availableOptions;\n let dynamicPageName = '';\n\n if (Object.keys(pdpBreadcrumb).length > 0) {\n const pageName = analyticsDynamicPageName(pdpBreadcrumb, siteSectionPdp);\n const skuId = skuDetailsData?.skuPricingAndAvailability.skuId ?? '';\n dynamicPageName = `${pageName}-${skuId}${isSuperSkuPage ? ':SUPER' : ''}`;\n }\n\n const breadCrumbList = pdpBreadcrumb.map((crumb) => crumb.displayName);\n const categoryLevel1 = breadCrumbList[1] || '';\n const categoryLevel2 = breadCrumbList[2] || '';\n const categoryLevel3 = breadCrumbList[3] || '';\n const categoryLevel4 = breadCrumbList[4] || '';\n const lwTestExperience = sessionStorage.getItem('lwTestExperience');\n const productStrikeThroughPricing = getProductStrikethroughAnalyticValue(\n skuDetailsData?.skuPricingAndAvailability,\n discountedPrice,\n strikeThroughPricingFlag\n );\n const performedSearch = sessionStorage.getItem('performedSearch') === 'true';\n const productRank = isNaN(Number(sessionStorage.getItem('productRank')))\n ? sessionStorage.getItem('productRank')\n : Number(sessionStorage.getItem('productRank'));\n let analyticsViewPayload: AnalyticsViewPayload = {\n categoryLevel1,\n categoryLevel2,\n categoryLevel3,\n categoryLevel4,\n pageName: getPageName(pageTypes.pdp, dynamicPageName),\n siteSection: siteSectionCatalog,\n pageType: pageTypes.pdp,\n searchMethod: sessionStorage.getItem('searchMethod') || '',\n pageHierarchy: `Home|${\n dynamicPageName.includes('-')\n ? dynamicPageName\n .replace(/-/g, ' ')\n .replace(/:/g, '|')\n .replace(/\\b([a-z])/g, (x) => x.toUpperCase())\n : dynamicPageName.replace(/\\b([a-z])/g, (x) => x.toUpperCase())\n }`,\n ...(productFindingMethod && { productFindingMethod }),\n ...(lwTestExperience && { lwTestExperience }),\n seoPageType: getSeoPageType(pageTypes.pdp, window?.location.pathname),\n ...(sessionStorage.getItem('productRank') !== null &&\n sessionStorage.getItem('productRank') !== undefined && { productRank }),\n seoPopularSearches: !!document.getElementById('#popular-searches-container'),\n seoPopularSearchesClick: sessionStorage.getItem('popularSearchClicked') === 'true',\n ...productDetailAnalytics({\n productDetails,\n skuDetailsData: skuDetailsData,\n autoCorrectedKeyword: '',\n vehicleId: vehicleId ?? '',\n fitsVehicle,\n vehicleSpecific,\n searchRedirectText:\n typeof router.query.searchText === 'string' ? router.query.searchText : '',\n hasDealBadge: shouldShowDealsButton,\n isNewDealsApiEnabled,\n skuDealsData,\n }),\n prodView: eventTypes.prodView,\n skuView: ['1'],\n productStrikeThroughPricing: productStrikeThroughPricing,\n tvVideoName: getSylvaniaVideoNames(sylvaniaData?.sylvaniaVideos),\n videoAvailable: installVideosEnabled ? !!sylvaniaData?.sylvaniaVideos?.length : false,\n vehicleSpecificImage:\n isProductVehicleImageEnabled && partTypeHasVehicleImages && !!preferredVehicle,\n };\n\n //todo use session storage productFindingMethod here\n if (pdpUtagViewAffinity) {\n const pageSpecificAnalyticsData: PageSpecificAnalyticsDataType = {\n ...analyticsViewPayload,\n productFindingMethod: 'Affinity',\n pfmLocation: 'Affinity:catalog_product_detail',\n };\n callPageView(\n pageSpecificAnalyticsData,\n getAnalyticsRelativeComplementOf(pageSpecificAnalyticsData, undefined)\n );\n sessionStorage.setItem('pdpUtagLinkAffinity', 'true');\n sessionStorage.removeItem('pdpUtagViewAffinity');\n } else {\n const analyticsDataToRemove =\n !performedSearch && typeof router.query.searchText === 'string'\n ? [...searchAnalyticsKeys, 'eventType']\n : searchAnalyticsKeys;\n\n callPageView(\n analyticsViewPayload,\n getAnalyticsRelativeComplementOf(analyticsViewPayload, analyticsDataToRemove)\n );\n }\n setPageSpecificData({ productFindingMethod: '' });\n sessionStorage.setItem('popularSearchClicked', 'false');\n sessionStorage.removeItem('searchMethod');\n sessionStorage.removeItem('performedSearch');\n sessionStorage.removeItem('lwTestExperience');\n sessionStorage.removeItem('productRank');\n setAnalyticsExecuted(true);\n } else if (analyticsExecuted && previousPath === router.asPath) {\n sessionStorage.removeItem('productFindingMethod');\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n addingToCartStatus,\n isUtagDefined,\n pdpBreadcrumb,\n skuDetailsResult.isSuccess,\n productDetailsQuery.isSuccess,\n isRedirect,\n analyticsExecuted,\n productDetails,\n skuDetailsData,\n vehicleId,\n fitsVehicle,\n vehicleSpecific,\n router.query.searchText,\n DLM_PDP_ENABLED,\n recommendationsClicked,\n ]);\n\n useEffect(() => {\n if (trackQOHError) {\n if (addingToCartStatus === 'error') {\n setTrackQOHError(false);\n const qohErrorAnalyticsData: QohErrorAnalyticsData = {\n originalPartTypeId: productDetails?.originalPartTypeId ?? '',\n productAvailableQuantity: productAvailableQuantity ? productAvailableQuantity : 0,\n productBrandList: [skuDetailsData?.skuPricingAndAvailability?.brandName ?? ''],\n productCorePriceList: [\n skuDetailsData?.skuPricingAndAvailability?.corePrice.toString() ?? '',\n ],\n orderType: fulfillmentTypeId ?? '',\n skuNumber: skuDetailsData?.skuPricingAndAvailability?.skuId ?? '',\n partNumber: productDetails?.partNumber ?? '',\n productPrice: skuDetailsData?.skuPricingAndAvailability?.retailPrice ?? 0,\n productRepositoryId: [productDetails?.ecommProductId ?? ''],\n requestQuantity: Number(quantity ?? 0),\n errorMessage: addToCartErr ?? '',\n };\n trackPdpQoHFailure(qohErrorAnalyticsData);\n }\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [addingToCartStatus, trackQOHError]);\n useEffect(() => {\n if ('scrollRestoration' in window.history) {\n window.history.scrollRestoration = 'manual';\n }\n });\n\n useEffect(() => {\n if (locale === countryCodes.ptBr) {\n return;\n }\n\n const getPaymentOptionList = async () => {\n await dispatch(fetchPaymentOptions());\n };\n getPaymentOptionList();\n }, [dispatch, locale]);\n\n const [activeCache, setActiveCache] = useState(false);\n const [showMiniCartModal, setShowMiniCartModal] = useState(false);\n const [showMiniCartFlyoutModal, setShowMiniCartFlyoutModal] = useState(false);\n const [preventLoadingSkeletonFromShowing, setPreventLoadingSkeletonFromShowing] = useState(false);\n const prevStoreNumber = usePrevious(headerData?.storeNumber ?? '');\n const prevVehicleId = usePrevious(vehicleId);\n const checkToOpenMiniCartModal =\n (cartSuccessNote || minicart) && (showMiniCartModal || showMiniCartFlyoutModal);\n\n const shouldShowLoadingSkeleton =\n !preventLoadingSkeletonFromShowing &&\n (productDetailsQuery.isFetching || skuDetailsResult.isFetching);\n const isPdpCertonaAddToCartEnabled =\n useFeatureFlag('IS_PDP_PAGE_CERTONA_ADD_TO_CART_ENABLED') === 'true';\n const skuId = skuDetailsData?.skuPricingAndAvailability.skuId ?? '';\n const fittingPartsURL =\n pdpBreadcrumb?.find((item) => item.pageType === 'ProductShelf')?.seoUrl ?? routePaths.blankURL;\n\n const certonaType =\n isCertonaEnabledForOosOrDoesNotFit && (isOos || doesNotFit)\n ? certonaPageType.pencilpdp\n : !isAccessories\n ? certonaPageType.pdp\n : certonaPageType.accessoriesProductPage;\n const certonaRecommendations = useGetCertonaRecommendations(\n {\n certonaType,\n vehicleID: vehicleId,\n Category1: parentShelfPage?.displayName,\n skuIds: skuId,\n parttype: formatPartTypeId(productDetails?.originalPartTypeId),\n },\n [vehicleId, skuId, isOos, doesNotFit],\n Boolean(\n productDetailsQuery.data &&\n !isRedirect &&\n skuId !== '' &&\n (!disableCertonaCall || prevVehicleId !== vehicleId)\n )\n );\n\n useAutoCloseOnOrderReady();\n\n useEffect(() => {\n root.scrollTo(0, 0);\n const jsTrackTimeOut = setTimeout(() => {\n const sortFilterList = document.querySelectorAll('.bv-dropdown-title');\n\n if (sortFilterList?.length > 0) {\n // .forEach is not supported in IE\n for (const element of sortFilterList) {\n element.addEventListener('click', trackSortFilter);\n }\n }\n }, 4500);\n return function cleanUp() {\n clearProductPageData();\n root.sessionStorage?.removeItem('productType');\n clearTimeout(jsTrackTimeOut);\n }; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (minicart || cartSuccessNote) {\n setDisableCertonaCall(true);\n\n if (isDesktop && !dealDrawerOpen && cartSuccessNote) {\n setShowMiniCartModal(true);\n }\n\n if (!dealDrawerOpen && cartSuccessNote) {\n setMiniCartFlyoutVisible(true);\n setShowMiniCartFlyoutModal(true);\n }\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minicart, cartSuccessNote]);\n\n useEffect(() => {\n if (!activeCache) {\n setActiveCache(true);\n } // after the inital call, any updates will use active caching\n\n const storeNumber = headerData?.storeNumber ?? '';\n const vehicleId = headerData?.vehicleMap?.catalogVehicleId ?? '';\n const url = getPathnameFromAsPath(router.asPath);\n const query = router.query;\n\n if (activeCache && query.vehicleId && vehicleId !== prevVehicleId && !!prevVehicleId) {\n const formattedUrl = stringifyUrl(\n {\n url,\n query: { ...query, vehicleId: null },\n },\n {\n skipNull: true,\n }\n );\n router.push(formattedUrl);\n } else if (\n activeCache &&\n (storeNumber !== prevStoreNumber || vehicleId !== prevVehicleId || !prevVehicleId)\n ) {\n setDisableCertonaCall(false);\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [headerData?.storeNumber, headerData?.vehicleMap]);\n\n useEffect(() => {\n setShowMiniCartModal(false);\n setShowMiniCartFlyoutModal(false);\n setShowCertonaMiniCartFlyoutModal(false);\n setDisableCertonaCall(false);\n setAnalyticsExecuted(false);\n clearProductPageData();\n setShippingTypeChanged(false);\n }, [router.asPath, dispatch, clearProductPageData]);\n\n useEffect(() => {\n if (sessionStorage.getItem('oemPartNumber')) {\n setOemPartNumber(sessionStorage.getItem('oemPartNumber')!);\n }\n if (sessionStorage.getItem('oemBrandName')) {\n setOemBrandName(sessionStorage.getItem('oemBrandName')!);\n }\n return () => {\n sessionStorage.removeItem('oemPartNumber');\n sessionStorage.removeItem('oemBrandName');\n };\n }, []);\n\n const submitToCart = () => {\n router.push(routePaths.cart);\n };\n\n const closeStoreModal = async () => {\n if (!!addedCertonaItemObject) {\n setCertonaRecommendationAddedToCart(false);\n setAddedCertonaItemObject(null);\n } else {\n clearProductPageData();\n setShowMiniCartModal(false);\n setMiniCartFlyoutVisible(false);\n setShowMiniCartFlyoutModal(false);\n setDisableCertonaCall(false);\n await refetchProductData();\n await refetchSkuDetails();\n }\n };\n\n const [dealDrawerOpen, setDealDrawerOpen] = useState(false);\n const [autoFocus, setAutoFocus] = useState(false);\n\n const canRenderCMSComparisonChart: boolean = useMemo(() => {\n if (productDetailsQuery.isFetched && isDefaultPDPFetched) {\n const premiumBrands: string[] = defaultPDPContent?.premiumBrands?.brands ?? [];\n const brandName = productDetailsQuery.data?.product?.brandName ?? '';\n\n return premiumBrands?.includes(brandName)\n ? isPremiumPDPFetched && !premiumPDPContent?.pageBody?.some(hasCMSPremiumTable)\n : true;\n }\n return false;\n }, [\n productDetailsQuery.isFetched,\n isDefaultPDPFetched,\n isPremiumPDPFetched,\n defaultPDPContent?.premiumBrands?.brands,\n productDetailsQuery.data?.product?.brandName,\n premiumPDPContent?.pageBody,\n ]);\n\n const closeDealsDrawer = useCallback(() => {\n setShowBundleDeals(false);\n isBundleDealDrawerOpen(false);\n setAutoFocus(true);\n }, []);\n\n const handleDealsAddToCart = useCallback(() => {\n setShippingTypeChanged(false);\n setDealsAddedToCart(true);\n }, []);\n\n const onContinueShopping = useCallback(async () => {\n await refetchProductData();\n await refetchSkuDetails();\n }, [refetchProductData, refetchSkuDetails]);\n\n if (productDetailsQuery.isError || skuDetailsResult.isError) {\n return ;\n }\n\n const isBundleDealDrawerOpen = (open: boolean) => {\n setDealDrawerOpen(open);\n };\n\n const showWarrantyModalFromPD = (showModalFrom: string) => {\n setWarrantyModal({ isShown: true, showModalFrom });\n };\n\n const openConfigurableSku = () => setCustomizeModalOpen(true);\n\n const brandCode = skuDetailsData?.skuPricingAndAvailability.configurableBrandCode ?? '';\n const productLineCode = skuDetailsData?.skuPricingAndAvailability.productLine ?? '';\n\n const renderProductCustomizableSKU = () => {\n if (productDetails) {\n const fixedHeaderWrapper = root.document.getElementById('TopHeader');\n\n if (fixedHeaderWrapper) {\n fixedHeaderWrapper.style.zIndex = '152';\n }\n\n return (\n \n );\n } else {\n return null;\n }\n };\n\n const renderMiniCart = () => {\n const productImage = productDetails?.itemImageUrl ?? '';\n const productTitle = productDetails?.itemDescription ?? '';\n\n const productDetailsForMiniCart = {\n productName: {\n productBrand: productDetailsQuery.data?.product?.subBrandName,\n productPart: productDetailsQuery.data?.product?.partTypeName,\n quickNote: productDetailsQuery.data?.product?.quickNote,\n },\n productAvailabilityInfo: skuDetailsResult.data?.[0],\n };\n\n const renderOldMiniCart = () => {\n return (\n \n {showMiniCartModal && (\n \n \n \n )}\n \n );\n };\n\n const renderNewFlyoutMiniCart = () => {\n return (\n \n \n
\n \n {showMiniCartFlyoutModal && (\n \n )}\n \n
\n
\n \n );\n };\n\n if (checkToOpenMiniCartModal) {\n if (\n (isDesktop && desktopMiniCartFlyoutEnabled) ||\n (isMobile && mobileMiniCartFlyoutEnabled) ||\n (isTablet && tabletMiniCartFlyoutEnabled)\n ) {\n return renderNewFlyoutMiniCart();\n } else if (!isMobile) {\n return renderOldMiniCart();\n }\n }\n };\n\n return (\n
\n {!isPDPContentFetched && (\n \n }\n rightContent={}\n />\n \n )}\n {isPDPContentFetched && (\n <>\n {productDetailsQuery.isFetched && productDetailsSEOMetadata ? (\n \n ) : null}\n {(skuDetailsData?.skuPricingAndAvailability.configurableSku ?? false) &&\n preferredVehicle &&\n customizeModalOpen &&\n renderProductCustomizableSKU()}\n {\n setRecommendationsClicked(true);\n setAnalyticsExecuted(false);\n }}\n data-testid=\"cms-modular-handler\"\n setAddedCertonaItemObject={setAddedCertonaItemObject}\n ProductDetails={\n \n }\n warrantyModal={warrantyModal}\n setWarrantyModal={setWarrantyModal}\n shouldOpenSpecsPanel={shouldOpenSpecsPanel}\n setShouldOpenSpecsPanel={setShouldOpenSpecsPanel}\n shouldShowLoadingSkeleton={shouldShowLoadingSkeleton}\n shippingType={shippingType}\n fulfillmentId={fulfillmentId}\n refetchSkuDetails={refetchSkuDetails}\n canRenderComparisonChart={canRenderCMSComparisonChart}\n setCertonaRecommendationAddedToCart={setCertonaRecommendationAddedToCart}\n />\n \n )}\n
{renderMiniCart()}
\n
\n \n \n
\n \n {showCertonaMiniCartFlyoutModal && addedCertonaItemObject && (\n \n )}\n \n
\n
\n \n
\n {locale === countryCodes.mx && }\n {productDetailsQuery.data?.product?.itemId && (\n \n \n \n )}\n \n \n
\n );\n}\n\nexport default ProductDetail;\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport ProductDetail from '@/components/ProductDetail';\nimport { getGlobalConfigFromCache, getFeatureFlag } from '@/features/globalConfig';\nimport { getHeaderDataFromCache } from '@/features/header/api/getHeader';\nimport { getPreferredVehicle } from '@/features/header/utils/getPreferredVehicle';\nimport { prefetchPreFooterData } from '@/features/prefooter/api/getPreFooterData';\nimport { getPageDependentPrefooterParams } from '@/features/prefooter/utils/getPageDependentPrefooterParams';\nimport {\n prefetchProductDetails,\n getProductDetailsFromCache,\n} from '@/features/product/api/getProductDetails';\nimport { prefetchProductSkuDeals } from '@/features/product/api/getProductDeals';\nimport { prefetchProductSkuDetails } from '@/features/product/api/getProductSkuDetails';\nimport { prefetchProductComparison } from '@/features/product/api/getProductComparison';\nimport { hasCMSPremiumTable } from '@/features/pdp';\nimport { prefetchProductVideos } from '@/features/pdp/api/getProductVideos';\nimport { prefetchGcpProductVideos } from '@/features/pdp/api/getGcpProductVideos';\nimport {\n prefetchContentStackDefaultPDPContent,\n getContentStackDefaultPDPContentFromCache,\n} from '@/features/pdp/api/getContentStackDefaultProductContent';\nimport {\n prefetchContentStackPremiumPDPContent,\n getContentStackPremiumPDPContentFromCache,\n} from '@/features/pdp/api/getContentStackPremiumProductContent';\nimport { mutateVehicles } from '@/features/ymme/api/postVehicles';\nimport type { PageContextType } from '@/next-types';\nimport { isEmptyObject } from '@/utils/common';\nimport { configureSharedPageData } from '@/utils/configureSharedPageData.server';\nimport { getPathnameFromAsPath, parseUrl } from '@/utils/urlHelpers';\nimport { dehydrate } from '@tanstack/react-query';\nimport { ProductListProvider } from '@/features/shelf/context/ProductListProvider';\nimport logger from '@/utils/logger';\nimport { prefetchDynamicLinkMappings } from '@/features/dlm/api/getDynamicLinkMappings';\nimport environmentConfig from '@/config/environment';\nimport { getDevice } from '@/utils/getDeviceType.server';\nimport { SisterStoreProvider } from '@/features/fulfillment/context/SisterStoreProvider';\nimport { getCountryFromLocale } from '@/utils/getCountryFromLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { prefetchSylvaniaVideos } from '@/features/product/api/getSylvaniaVideos';\nimport { getKiboDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { prefetchGcp360Image } from '@/features/pdp/api/getGcp360Image';\nimport { prefetchProductVehicleImage } from '@/features/pdp/api/getGcpProductVehicleImage';\n\nexport const config = {\n unstable_JsPreload: false,\n};\n\nfunction ProductDetailsPage() {\n return (\n \n \n \n );\n}\n\nProductDetailsPage.getInitialProps = async (context: PageContextType) => {\n const { req, store, query, res, asPath } = context;\n\n if (__IS_SERVER__) {\n const { slug } = query;\n const device = getDevice(req);\n\n if (!Array.isArray(slug)) {\n throw new Error('The slug for ProductDetails must be an array');\n }\n\n const { axios, queryClient, initialAppState } = await configureSharedPageData(context);\n const { locale } = initialAppState;\n\n // FIXME: this doesn't feel like the right place to do this\n if (query.vehicleId && query.vehicleId !== '0') {\n // Vehicles are saved with the prefix `3` in endeca, so we need to add it here\n try {\n await mutateVehicles(\n queryClient,\n {\n vehicleId: `${query.vehicleId}`,\n locale,\n },\n axios\n );\n } catch (err) {\n logger.error({\n message: `Error when adding vehicle ${query.vehicleId} from query param in PDP`,\n meta: {\n url: asPath,\n },\n });\n }\n }\n\n // After updating vehicles, header data is refetched, so we should read it after\n const headerData = getHeaderDataFromCache(queryClient);\n const catalogVehicleId = getPreferredVehicle(headerData)?.catalogVehicleId ?? '0';\n const storeNumber = headerData?.storeNumber ?? '';\n const globalConfig = getGlobalConfigFromCache(queryClient);\n const seoUrl = `/${slug.join('/')}`;\n\n const productDetailsOptions = {\n vehicleId: Number(catalogVehicleId),\n locale,\n lineCode: undefined,\n productDetailsPageUrl: seoUrl,\n userSegment: undefined,\n partNumber: undefined,\n itemIds: undefined,\n storeId: storeNumber ? Number(storeNumber) : undefined,\n preview: environmentConfig.SHOW_XM_PREVIEW_DATE,\n };\n\n // Disable PDP for Brazil while ecomm disabled\n if (\n initialAppState.locale === countryCodes.ptBr &&\n globalConfig?.BRAZIL_PHASE_TWO_ENABLED !== 'true'\n ) {\n res?.writeHead(301, { Location: '/errorPath' }).end();\n return {\n initialAppState,\n dehydratedState: dehydrate(queryClient),\n };\n }\n\n await prefetchProductDetails(queryClient, productDetailsOptions, axios);\n const productDetails = getProductDetailsFromCache(queryClient, productDetailsOptions);\n const country = getCountryFromLocale(locale);\n\n if (getKiboDecisionFlag(queryClient, 'gcpThreeSixtyImageEnabled')) {\n const threeSixtyImageOptions = {\n country,\n skuIds: productDetails?.product?.itemId ?? '',\n };\n prefetchGcp360Image(axios, queryClient, threeSixtyImageOptions);\n }\n\n const isSuperSKUFitmentRedirectEnabled = getKiboDecisionFlag(\n queryClient,\n 'superSKUFitmentRedirectEnabled'\n );\n\n const isSuperSkusEnabled = getFeatureFlag(globalConfig, 'IS_SUPER_SKUS_ENABLED') === 'true';\n\n const isSuperSkuPage =\n isSuperSkusEnabled &&\n !!productDetails?.product?.choices &&\n !!productDetails.product.availableOptions;\n\n const superSkuDoesNotFit =\n catalogVehicleId !== '0' &&\n productDetails?.product?.recordType === 'app' &&\n !productDetails.product.vehicleFitFlag;\n\n const superSkuRedirectPath =\n isSuperSkuPage &&\n isSuperSKUFitmentRedirectEnabled &&\n productDetails?.product?.choices?.length !== undefined &&\n productDetails.product.choices.length > 0 &&\n superSkuDoesNotFit\n ? productDetails?.product?.choices?.[0]?.choice.productDetailsPageUrl\n : undefined;\n\n const redirectPath = productDetails?.redirectURL ?? superSkuRedirectPath;\n\n if (redirectPath) {\n const parsedPath = parseUrl(redirectPath);\n let sanitizedPath = redirectPath;\n\n if (!isEmptyObject(parsedPath?.query)) {\n sanitizedPath = parsedPath.url;\n }\n\n const { appData } = store.getState();\n const isBot = appData.deviceType === 'bot';\n // Do not send full path with query params for bots: We explicitly append recsPerPage: 24 for bots when constructing the completeURL for the ATG call in this file.\n // However, even though we are requesting 24 recsPerPage, SEO does not want this query param to show up in the redirect url since bots are technically not be able to change recsPerPage.\n const path = isBot ? sanitizedPath : redirectPath;\n\n if (path !== undefined) {\n res?.writeHead(301, { Location: path }).end();\n return {\n initialAppState,\n dehydratedState: dehydrate(queryClient),\n };\n }\n }\n\n let productContentsPromise: Promise | undefined;\n let skuComparisonPromise: Promise | undefined;\n let cmsPremiumContentPromise: Promise | undefined;\n let dynamicLinksPromise: Promise | undefined;\n let sylvaniaVideosPromise: Promise | undefined;\n let productVehiclePromise: Promise | undefined;\n\n const taxonomyPath = productDetails?.product?.cmsContentPath ?? '';\n const brandName =\n productDetails?.product?.subBrandName ?? productDetails?.product?.brandName ?? '';\n\n productContentsPromise = prefetchContentStackDefaultPDPContent(\n queryClient,\n taxonomyPath,\n context,\n headerData?.segments?.sort() ?? []\n );\n\n productContentsPromise.then(() => {\n const pdpDefault = getContentStackDefaultPDPContentFromCache(\n queryClient,\n taxonomyPath,\n headerData?.segments?.sort() ?? []\n );\n\n if (\n productDetails?.product?.brandName &&\n ((pdpDefault?.premiumBrands?.brands ?? []) as string[]).includes(\n productDetails.product.brandName\n )\n ) {\n cmsPremiumContentPromise = prefetchContentStackPremiumPDPContent(\n queryClient,\n taxonomyPath,\n context,\n headerData?.segments?.sort() ?? [],\n brandName\n );\n }\n });\n\n if (\n Boolean(productDetails?.product?.vehicleFitFlag) &&\n Boolean(catalogVehicleId) &&\n catalogVehicleId !== '0' &&\n productDetails?.product?.itemId &&\n productDetails?.product?.lineCode === 'SYL' &&\n getFeatureFlag(globalConfig, 'IS_YMME_INSTALL_VIDEOS_ENABLED') === 'true'\n ) {\n const sylvaniaVideosParams = {\n productId: productDetails.product.itemId,\n locale,\n vehicleId: catalogVehicleId,\n };\n sylvaniaVideosPromise = prefetchSylvaniaVideos(axios, queryClient, sylvaniaVideosParams);\n }\n\n if (\n getFeatureFlag(globalConfig, 'IS_PRODUCT_VEHICLE_IMAGE_ENABLED') === 'true' &&\n catalogVehicleId !== '0' &&\n Boolean(catalogVehicleId) &&\n !!productDetails?.product?.originalPartTypeId\n ) {\n const productVehicleImageParams = {\n vehicleId: catalogVehicleId,\n partCode: productDetails?.product?.originalPartTypeId,\n country: country,\n };\n\n productVehiclePromise = prefetchProductVehicleImage(\n axios,\n queryClient,\n productVehicleImageParams\n );\n }\n\n if (\n device.type === 'bot' &&\n getFeatureFlag(globalConfig, 'PDP_COMPARISON_ENABLED') === 'true' &&\n productDetails?.product?.pdpComparisonEnabled &&\n productDetails.product.brandName &&\n productDetails.product.ecommProductId\n ) {\n const productComparisonParams = {\n parentBrandName: productDetails.product.brandName,\n subBrandName: productDetails.product.subBrandName,\n productId: productDetails.product.ecommProductId,\n skuId: productDetails.product.itemId,\n storeNumber: storeNumber || undefined,\n vehicleId: catalogVehicleId,\n };\n\n await productContentsPromise;\n await cmsPremiumContentPromise;\n const premiumPDPContent = getContentStackPremiumPDPContentFromCache(\n queryClient,\n taxonomyPath,\n headerData?.segments?.sort() ?? [],\n brandName\n );\n if (!premiumPDPContent || !premiumPDPContent.pageBody?.some(hasCMSPremiumTable)) {\n skuComparisonPromise = prefetchProductComparison(\n productComparisonParams,\n queryClient,\n axios\n );\n }\n }\n\n if (\n device.type === 'bot' &&\n productDetails?.product?.itemId &&\n getFeatureFlag(globalConfig, 'DLM_PDP_ENABLED') === 'true' &&\n catalogVehicleId === '0'\n ) {\n dynamicLinksPromise = prefetchDynamicLinkMappings(\n {\n type: 'generic',\n country: getCountryFromLocale(locale),\n seoRepositoryId: productDetails.product.itemId,\n gcpUrlEnabled: getFeatureFlag(globalConfig, 'SEO_GCP_URL_ENABLED') === 'true',\n },\n queryClient,\n axios\n );\n }\n\n await Promise.all([\n productContentsPromise,\n cmsPremiumContentPromise,\n !!productDetails?.product?.itemId\n ? prefetchProductSkuDetails(axios, queryClient, {\n skuIds: [productDetails.product.itemId],\n storeNumber,\n vehicleId: catalogVehicleId,\n isNewDealsApiEnabled:\n getFeatureFlag(globalConfig, 'IS_NEW_DEALS_API_ENABLED') === 'true',\n })\n : undefined,\n productDetails?.product?.itemId &&\n locale === countryCodes.us &&\n (getKiboDecisionFlag(queryClient, 'pdGcpUrlEnabled')\n ? prefetchGcpProductVideos({\n queryClient,\n skuId: productDetails.product.itemId,\n axiosInstance: axios,\n })\n : prefetchProductVideos(queryClient, productDetails!.product!.itemId, axios)),\n prefetchPreFooterData(\n queryClient,\n {\n locale: initialAppState.locale,\n seourl: getPathnameFromAsPath(asPath).replace(/(\\/bn\\/|\\/b\\/).*/, ''),\n vehicleId: catalogVehicleId,\n ...getPageDependentPrefooterParams({\n isPDP: true,\n pageTypeData: undefined,\n productDetails,\n }),\n gcpUrlEnabled: getFeatureFlag(globalConfig, 'SEO_GCP_URL_ENABLED') === 'true',\n },\n axios\n ),\n productDetails?.product?.itemId &&\n getFeatureFlag(globalConfig, 'IS_NEW_DEALS_API_ENABLED') === 'true' &&\n prefetchProductSkuDeals(\n {\n skuIds: [productDetails.product.itemId],\n storeNumber,\n vehicleId: catalogVehicleId,\n },\n queryClient,\n axios\n ),\n skuComparisonPromise,\n dynamicLinksPromise,\n sylvaniaVideosPromise,\n productVehiclePromise,\n ]);\n\n return {\n initialAppState,\n dehydratedState: dehydrate(queryClient),\n };\n }\n\n return {};\n};\n\nProductDetailsPage.getLayout = (page: React.ReactNode) => {\n return {page};\n};\n\nexport default ProductDetailsPage;\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { type IItem } from '@/components/AZCustomComponent/BreadcrumbSTARC/utils/isBreadcrumbModel';\n\nconst formatBreadcrumbsForSTARC = (breadcrumbs?: IItem[] | null, shouldModify = false): IItem[] => {\n let defaultBreadcrumbs = breadcrumbs || [];\n\n if (shouldModify) {\n defaultBreadcrumbs = defaultBreadcrumbs.slice(1);\n defaultBreadcrumbs.pop();\n }\n\n return defaultBreadcrumbs.map((breadcrumb) => ({\n ...breadcrumb,\n label: breadcrumb.displayName,\n }));\n};\n\nexport { formatBreadcrumbsForSTARC };\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nexport function invalidDataCheck(data: string | undefined | null | boolean): string | boolean {\n if (\n data === undefined ||\n data === null ||\n data === '' ||\n (Array.isArray(data) && data.length < 1)\n ) {\n return '';\n }\n\n return data;\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { type IItem } from '@/components/AZCustomComponent/BreadcrumbSTARC/utils/isBreadcrumbModel';\n\nexport const analyticsDynamicPageName = (\n breadCrumbData: IItem[] | undefined,\n pageType: string\n): string => {\n const displayNameData = breadCrumbData?.map((bredCrumb) => {\n const { displayName } = bredCrumb || {};\n\n if (displayName && displayName !== '') {\n return displayName.toLowerCase().replace(/\\s/g, '-');\n }\n });\n\n if (displayNameData && displayNameData.length > 1) {\n displayNameData.shift();\n }\n\n if (!displayNameData) {\n return `:${pageType}`;\n }\n\n return `${displayNameData.join(':')}:${pageType}`;\n};\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { isSafari } from '../common';\n\nconst nativeSmoothScrollTo = (position: number) => {\n window.scroll({\n behavior: 'smooth',\n left: 0,\n top: position,\n });\n}; // polyfilled smooth scrolling for IE, Edge & Safari\n\nconst smoothScrollTo = (position: number, duration: number) => {\n const element = document.scrollingElement || document.documentElement,\n startDate = +new Date();\n\n const easeInOutQuad = (t: number, b = 0, c: number, d: number) => {\n t /= d / 2;\n if (t < 1) {\n return (c / 2) * t * t + b;\n }\n t--;\n return (-c / 2) * (t * (t - 2) - 1) + b;\n };\n\n const animateScroll = () => {\n const currentDate = +new Date();\n const currentTime = currentDate - startDate;\n\n element.scrollTop = easeInOutQuad(currentTime, 0, position, duration);\n\n if (currentTime < duration) {\n requestAnimationFrame(animateScroll);\n } else {\n element.scrollTop = position;\n }\n };\n\n animateScroll();\n};\n\n// detect support for the behavior property in ScrollOptions\nconst supportsNativeSmoothScroll = () => {\n if (typeof window !== 'undefined') {\n return 'scrollBehavior' in document.documentElement.style;\n }\n};\n\n// smooth scrolling stub\nconst scrollToElem = (position: number) => {\n if (position) {\n if (supportsNativeSmoothScroll() && !isSafari()) {\n nativeSmoothScrollTo(position);\n } else {\n smoothScrollTo(position, 600);\n }\n }\n};\n\nexport default scrollToElem;\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nexport const getImagePaths = (imagePath: string) => {\n const sections = imagePath?.split('.');\n const extension = sections && sections[sections.length - 1];\n return {\n phoneImage: imagePath?.replace(`.${extension}`, `-m.${extension}`),\n tabletImage: imagePath?.replace(`.${extension}`, `-t.${extension}`),\n desktopImage: imagePath?.replace(`.${extension}`, `-d.${extension}`),\n };\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_So\",\"whiteTheme\":\"az_To\",\"pageTitle\":\"az_Uo\",\"separator\":\"az_Vo\",\"shopAllContainer\":\"az_Wo\",\"gridContainer\":\"az_Xo\",\"gridItem\":\"az_Yo\",\"link\":\"az_Zo\",\"gridItemText\":\"az__o\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"mainContainer\":\"az_I\",\"errorPageContainer\":\"az_J\",\"errorPageHeadingContainer\":\"az_K\",\"errorPageMobileHeading\":\"az_L\",\"errorPageSubText\":\"az_M\",\"errorPageBtnContainer\":\"az_N\",\"errorPageFlexStart\":\"az_O\",\"errorPageImg\":\"az_P\",\"positionAbsolute\":\"az_Q\",\"errorPageBtn\":\"az_R\",\"marginTopZero\":\"az_S\",\"marginBottom30\":\"az_T\",\"paragraphContainer\":\"az_U\",\"errorPageContainerLarge\":\"az_V\",\"errorPageParagraph\":\"az_W\",\"errorPageElements\":\"az_X\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"oosAndDoesNotFitCertonaContainer\":\"az_XIc\",\"twoTextsContainer\":\"az_YIc\",\"pdpOosText\":\"az_ZIc\",\"pdpOosBoldText\":\"az__Ic\",\"shopAllMobileSpace\":\"az_aJc\",\"titlesContainer\":\"az_bJc\",\"shopAllStyles\":\"az_cJc\",\"threeOrMoreItemsAvailable\":\"az_dJc\",\"twoItemsAvailable\":\"az_eJc\",\"horizontalSkeletonWrapper\":\"az_fJc\",\"horizontalSkeleton\":\"az_gJc\",\"buttonSkeleton\":\"az_hJc\",\"sharedOOSWrapper\":\"az_iJc\",\"doesNotFitNotificationContainer\":\"az_jJc\",\"starcSmallBodyOverride\":\"az_kJc\",\"starcLargeBodyOverride\":\"az_lJc\",\"removeHorizontalPadding\":\"az_mJc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"corePriceWrapper\":\"az_Gjc\",\"corePriceRow\":\"az_Hjc\",\"corePriceLabel\":\"az_Ijc\",\"corePriceRowSeperator\":\"az_Jjc\",\"addMargin\":\"az_Kjc\",\"pbottom\":\"az_Ljc\",\"coreChargeWrapper\":\"az_Mjc\",\"priceStyle\":\"az_Njc\",\"breakdownTitle\":\"az_Ojc\",\"priceSkeleton\":\"az_Pjc\",\"tooltipLabelWrapper\":\"az_Qjc\",\"infoTooltip\":\"az_Rjc\",\"refundablePriceSkeleton\":\"az_Sjc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"discountCaption\":\"az_Ekc\",\"clearanceCoreWrapper\":\"az_Fkc\",\"coreInfoWrapper\":\"az_Gkc\",\"marginBtm\":\"az_Hkc\",\"clearanceWrapper\":\"az_Ikc\",\"horizantalStrikeLine\":\"az_Jkc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"priceSkeleton\":\"az_NUb\",\"coreChargePlusCoreStyle\":\"az_OUb\",\"quantityContainer\":\"az_PUb\",\"priceQuantityWrapper\":\"az_QUb\",\"makeColumn\":\"az_RUb\",\"quantityMargin\":\"az_SUb\",\"strikethroughPriceWrapper\":\"az_TUb\",\"marginLeft\":\"az_UUb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"readmore\":\"az_zUb\",\"note\":\"az_AUb\",\"superSku\":\"az_BUb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"titleContainer\":\"az_CUb\",\"productTitle\":\"az_DUb\",\"shareLinkContainer\":\"az_EUb\",\"shopAllBrandNameText\":\"az_FUb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"priceSkeleton\":\"az_Ajc\",\"strikethroughPriceWrapper\":\"az_Bjc\",\"marginLeft\":\"az_Cjc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"seoContentStyles\":\"az_rTb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_o7\",\"mainImage\":\"az_p7\",\"thumbnailContainer\":\"az_q7\",\"mobileFilledDot\":\"az_r7\",\"mobileEmptyDot\":\"az_s7\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_E7\",\"skeletonMargin\":\"az_F7\",\"skeletonPriceAndQuantityContainer\":\"az_G7\",\"skeletonPriceContainer\":\"az_H7\",\"skeletonDollarSign\":\"az_I7\",\"skeletonQuantityContent\":\"az_J7\",\"skeletonQuantityCircle\":\"az_K7\",\"skeletonQuantitySquare\":\"az_L7\",\"skeletonDeliverOptionContainer\":\"az_M7\",\"skeletonDeliverOptionSecondItem\":\"az_N7\",\"skeletonDeliverOptionCircle\":\"az_O7\",\"skeletonBlackBox\":\"az_P7\",\"skeletonSplitSquares\":\"az_Q7\",\"horizontalSpacing\":\"az_R7\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"superSkuOptionSelector\":\"az_CMb\",\"optionName\":\"az_DMb\",\"selectedOption\":\"az_EMb\",\"optionsContainer\":\"az_FMb\",\"options\":\"az_GMb\",\"optionButton\":\"az_HMb\",\"selectedOptionButton\":\"az_IMb\",\"disabledOptionButton\":\"az_JMb\",\"arrowButton\":\"az_KMb\",\"arrowButtonLeft\":\"az_LMb\",\"arrowButtonRight\":\"az_MMb\",\"hidden\":\"az_NMb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_Kdc\",\"text\":\"az_Ldc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_khc\",\"leftImageContainer\":\"az_lhc\",\"rightImageContainer\":\"az_mhc\",\"image\":\"az_nhc\",\"copyContainer\":\"az_ohc\",\"installCopy\":\"az_phc\",\"seeAllCopy\":\"az_qhc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"prodDetailSpacing\":\"az_B8\",\"addToCartButton\":\"az_C8\",\"addToCartButtonDisabled\":\"az_D8\",\"imgDealsLink\":\"az_E8\",\"specialDealsLink\":\"az_F8\",\"dealsButtonStyle\":\"az_G8\",\"location\":\"az_H8\",\"noteMore\":\"az_I8\",\"applicationText\":\"az_J8\",\"coreInfoheader\":\"az_K8\",\"warranty\":\"az_L8\",\"warrantyButton\":\"az_M8\",\"warrantyText\":\"az_N8\",\"pagination\":\"az_O8\",\"unitPrice\":\"az_P8\",\"inlineTypography\":\"az_Q8\",\"pipeSymbol\":\"az_R8\",\"pipeSymbolLeft\":\"az_S8\",\"horizantalLine\":\"az_T8\",\"noPricing\":\"az_U8\",\"mobileSpace\":\"az_V8\",\"corePrice\":\"az_W8\",\"quantityContainer\":\"az_X8\",\"tabletSpace\":\"az_Y8\",\"warrantyLocation\":\"az_Z8\",\"discountCaption\":\"az__8\",\"priceCaption\":\"az_a9\",\"priceCaptionHidden\":\"az_b9\",\"reviewWrapper\":\"az_c9\",\"productMetaWrapper\":\"az_d9\",\"productMetaLabel\":\"az_e9\",\"oemInline\":\"az_f9\",\"priceQuantityWrapper\":\"az_g9\",\"quantityMargin\":\"az_h9\",\"dealsBadgeContainer\":\"az_i9\",\"dealsDrawerButton\":\"az_j9\",\"paypalDealsBadgeContainer\":\"az_k9\",\"paypalFulfillmentSpacing\":\"az_l9\",\"warrantyBadge\":\"az_m9\",\"label\":\"az_n9\",\"priceRow\":\"az_o9\",\"breakdownTitle\":\"az_p9\",\"priceStyle\":\"az_q9\",\"coreChargeTitle\":\"az_r9\",\"coreChargeStyle\":\"az_s9\",\"coreChargePlusCoreStyle\":\"az_t9\",\"tooltipLabelWrapper\":\"az_u9\",\"infoTooltip\":\"az_v9\",\"separator\":\"az_w9\",\"clearanceCoreWrapper\":\"az_x9\",\"clearanceWrapper\":\"az_y9\",\"fullWidthinMobile\":\"az_z9\",\"priceSkeleton\":\"az_A9\",\"refundablePriceSkeleton\":\"az_B9\",\"container\":\"az_C9\",\"wrapper\":\"az_D9\",\"paypalPayLaterPDP\":\"az_E9\",\"rewardsBadge\":\"az_F9\",\"superSkuOptionsContainer\":\"az_G9\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"horizontalDivider\":\"az_Bwc\",\"container\":\"az_Cwc\",\"title\":\"az_Dwc\",\"description\":\"az_Ewc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_Twc\",\"title\":\"az_Uwc\",\"descriptionContainer\":\"az_Vwc\",\"description\":\"az_Wwc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"contentDivider\":\"az_xfc\",\"productSpecificationWrapper\":\"az_yfc\",\"productSpecificationPart\":\"az_zfc\",\"productDescriptionPart\":\"az_Afc\",\"productSpecificationTitle\":\"az_Bfc\",\"productDescriptionTitle\":\"az_Cfc\",\"productSpecificationBody\":\"az_Dfc\",\"productServiceBulletinLinks\":\"az_Efc\",\"specsTableContainer\":\"az_Ffc\",\"notesDescription\":\"az_Gfc\",\"description\":\"az_Hfc\",\"productSpecHeaderContainer\":\"az_Ifc\",\"productDescHeaderContainer\":\"az_Jfc\",\"warranty\":\"az_Kfc\",\"feature\":\"az_Lfc\",\"featurelist\":\"az_Mfc\",\"checkmark\":\"az_Nfc\",\"readMoreMobileBtnContainer\":\"az_Ofc\",\"readMoreButton\":\"az_Pfc\",\"arrowReadless\":\"az_Qfc\",\"readMoreArrow\":\"az_Rfc\",\"readMoreSmall\":\"az_Sfc\",\"readMoreSmallProdDesc\":\"az_Tfc\",\"mobileDesc\":\"az_Ufc\",\"productDescriptionButtons\":\"az_Vfc\",\"readMoreButtonContainer\":\"az_Wfc\",\"bulletinsValue\":\"az_Xfc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"specInnerRow\":\"az_mxc\",\"specsCell\":\"az_nxc\",\"compactCell\":\"az_oxc\",\"specLabel\":\"az_pxc\",\"specsValue\":\"az_qxc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"frequentContainer\":\"az_ln\",\"miniCartPopup\":\"az_mn\",\"productImage\":\"az_nn\",\"innerSpec\":\"az_on\",\"warrantyYrStyle\":\"az_pn\",\"feature\":\"az_qn\",\"featurelist\":\"az_rn\",\"specInnerRow\":\"az_sn\",\"warranty\":\"az_tn\",\"mainProductWrapper\":\"az_un\",\"productContainer\":\"az_vn\",\"mainContentContainer\":\"az_wn\",\"pdpWrapper\":\"az_xn\",\"expansionPanelSummary\":\"az_yn\",\"expansionPanelIcon\":\"az_zn\",\"expansionPanelDetails\":\"az_An\",\"miniCartFlyoutDialog\":\"az_Bn\",\"customPaperDrawer\":\"az_Cn\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"root\":\"az_Vrc\",\"topCaption\":\"az_Wrc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"skeletonContainer\":\"az_skb\",\"partsContainer\":\"az_tkb\",\"partCard\":\"az_ukb\",\"textSkeletonSection\":\"az_vkb\",\"innerRow\":\"az_wkb\",\"descriptionColumn\":\"az_xkb\",\"buttonColumn\":\"az_ykb\",\"buttonSkeleton\":\"az_zkb\",\"textSkeleton\":\"az_Akb\",\"skeletonArrows\":\"az_Bkb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"reviewsHeader\":\"az_YLb\",\"reviewsSummary\":\"az_ZLb\",\"pdpWrapper\":\"az__Lb\",\"expansionPanelSummary\":\"az_aMb\",\"expansionPanelIcon\":\"az_bMb\",\"expansionPanelDetails\":\"az_cMb\",\"reviewsContent\":\"az_dMb\",\"reviewsLinkContainer\":\"az_eMb\",\"reviewsLink\":\"az_fMb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"bannerContainer\":\"az_FIb\",\"breadCrumbContainer\":\"az_GIb\",\"buyersGuideSummary\":\"az_HIb\",\"bannerHeader\":\"az_IIb\",\"blackCar\":\"az_JIb\",\"arrow\":\"az_KIb\",\"titleOne\":\"az_LIb\",\"titleTwo\":\"az_MIb\",\"titleMx\":\"az_NIb\",\"container\":\"az_OIb\",\"title\":\"az_PIb\",\"subTitle\":\"az_QIb\",\"selectedBreadCrumb\":\"az_RIb\",\"choice\":\"az_SIb\",\"spacing-xs-2\":\"az_TIb\",\"addVehicleActionRow\":\"az_UIb\",\"addVehicleActionRowButton\":\"az_VIb\",\"addVehicleMarginRight\":\"az_WIb\",\"continueShoppingRowButton\":\"az_XIb\",\"vehicleInfo\":\"az_YIb\",\"breadcrumbSeparator\":\"az_ZIb\",\"breadcrumbLinkAZ\":\"az__Ib\",\"listItem\":\"az_aJb\",\"buttonStyle\":\"az_bJb\",\"breadcrumbList\":\"az_cJb\",\"loadingContainer\":\"az_dJb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"breadcrumbs\":\"az_Zvc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"titleContainer\":\"az_Fwc\",\"title\":\"az_Gwc\",\"text\":\"az_Hwc\",\"ymmePadding\":\"az_Iwc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"carouselContent\":\"az_Kkc\",\"videoContainer\":\"az_Lkc\",\"carouselControl\":\"az_Mkc\",\"videoIframe\":\"az_Nkc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"pinchZoomContainer\":\"az_nMc\",\"pinchZoomWrapper\":\"az_oMc\",\"pinchZoomContent\":\"az_pMc\",\"overlayTextContainer\":\"az_qMc\",\"overLayText\":\"az_rMc\",\"carouselImage\":\"az_sMc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"pdpThumbnailContainer\":\"az_VUb\",\"enlargedMediaContainer\":\"az_WUb\",\"videoContainerInline\":\"az_XUb\",\"videoContainer\":\"az_YUb\",\"enlargedImgBox\":\"az_ZUb\",\"imgHeight\":\"az__Ub\",\"threeSixtyContainer\":\"az_aVb\",\"threeSixtyCarouselImage\":\"az_bVb\",\"productCarouselContainer\":\"az_cVb\",\"enlargedIframe\":\"az_dVb\",\"noProdMsg\":\"az_eVb\",\"desktopCarousel\":\"az_fVb\",\"desktopMedia\":\"az_gVb\",\"configurableSkuBadgeContainer\":\"az_hVb\",\"mobileCarousel\":\"az_iVb\",\"threesixtyCaption\":\"az_jVb\",\"customCarouselContainer\":\"az_kVb\",\"carouselSlidesContainer\":\"az_lVb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"addToCartButtonSection\":\"az_FOc\",\"addToCartButton\":\"az_GOc\",\"assortmentTotalText\":\"az_HOc\",\"itemsTotalPrice\":\"az_IOc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"az_iPc\",\"label\":\"az_jPc\",\"productName\":\"az_kPc\",\"link\":\"az_lPc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"relatedPartsCheckboxNameList\":\"az_DOc\",\"desktopListWrap\":\"az_EOc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"relatedPartsPictureList\":\"az_JOc\",\"relatedPartPictureWithPlusSign\":\"az_KOc\",\"relatedPartPlusSign\":\"az_LOc\",\"relatedPartDeselected\":\"az_MOc\",\"relatedProductImage\":\"az_NOc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"relatedProductsContainer\":\"az_rxc\",\"headerContainer\":\"az_sxc\",\"notificationContainer\":\"az_txc\",\"notificationMessage\":\"az_uxc\",\"iconAndText\":\"az_vxc\",\"notificationTitle\":\"az_wxc\",\"notificationSubtitle\":\"az_xxc\",\"errorIcon\":\"az_yxc\",\"closeNotificationButton\":\"az_zxc\",\"errorShadow\":\"az_Axc\",\"relatedPartsBody\":\"az_Bxc\",\"relatedPartsPictureListContainer\":\"az_Cxc\",\"productQuantityInfo\":\"az_Dxc\",\"productQuantityInfoImageWrapper\":\"az_Exc\",\"productQuantityInfoLabel\":\"az_Fxc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"relatedProductsContainer\":\"az_GDc\",\"relatedProductsHeader\":\"az_HDc\",\"cartButton\":\"az_IDc\",\"ctjDescription\":\"az_JDc\",\"exclamationIcon\":\"az_KDc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"descriptionContainer\":\"az_ALc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"relatedPartCheckbox\":\"az_JKc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"showAllBtn\":\"az_iLc\",\"showAllChevron\":\"az_jLc\",\"expanded\":\"az_kLc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"videoTransitionTimeMilliseconds\":\"300\"};"],"names":["window","__NEXT_P","push","__webpack_require__","decodeUrlParam","url","param","includes","urlBeforeParam","urlWithParam","split","urlAfterParam","extractedParam","substring","indexOf","decodedParam","decodeURIComponent","concat","ContainOverflow","contain","children","jsx_runtime","jsxs","div","jsx","style","maxWidth","margin","trackHomeLinkInteractionBySection","linkName","section","id","clickTrack","homeLinkName","linkBySection","clickedProductId","eventType","MobileGridContent","contentBlock","props","eager","useEagerLoad","isEagerLoadDesktop","isEagerLoadMobile","isEagerLoadTablet","isDesktop","useMediaQuery","theme","breakpoints","up","homeLinkInteraction","sectionName","replace","trim","renderItemsContentText","item","text","className","cx","styles","azCommonStyles","dangerouslySetInnerHTML","__html","deviceClassName","desktop","tablet","mobile","overallHeadLine","layout","layoutCode","renderMGItems","renderMapGridItems","grid","childContentBlockList","Object","values","gridMapItems","map","index","link","CTALink","query","intcmp","parseUrl","sanitizedRedirectPath","sanitizeUrlWithParamList","acceptableShelfQueryParams","key","Grid","component","md","xs","data-testid","Link","to","onClick","samePage","Image","priority","src","getResponsiveImage","imageURL","alt","height","width","loader","akamaiLoader","useResponsiveImage","toLowerCase","DeviceWrapper","container","spacing","ref","gridRef","lg","CTAName","span","ErrorPage_GridObject","altText","themeCode","siteSectionPageUnavailable","siteSections","labelMap","heading","textTwoMobTablet","textOne","textTwoDesk","textThree","components_ErrorPage","isWithAnalytics","matchesMobile","down","pageViewCall","usePageViewCall","locale","useLocale","labels","useLabels","isLocaleUSA","countryCodes","us","isBrSite","ptBr","hasSetupAnalytics","useAnalytics","useEffect","pageSpecificAnalyticsData","pageName","getPageName","siteSection","pageType","pageTypes","notFound","seoPageType","getSeoPageType","pageHierarchy","contentBlockNames","contentBlockTypes","getAnalyticsRelativeComplementOf","undefined","handleOnPress","location","Fragment","h1","tabIndex","p","role","aria-label","Hidden","only","AZButton","variant","title","onPress","buttonState","GridObject","TableCaption","dataTestId","captionside","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","caption","searchAnalyticsKeys","defaultVideoPoster","rightArrowActive","getCMSCategoryData","queryKey","segments","taxonomyPath","data","getAxiosForClient","get","params","join","selector","getCategoryDataKey","useCMSCategoryData","pageTypeData","usePageType","isCategoryPage","CategoryGrouping","makeModelYearPath","subPageType","useGetCMSCategoryData","enabled","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__","_","isSuccess","useSegments","useQuery","options","sort","queryFn","getContentStackDefaultPdpContent","response","getDefaultPDPKey","useContentStackDefaultPDPContent","getContentStackPremiumPdpContent","brandName","getPremiumPDPKey","useContentStackPremiumPDPContent","isEnabled","queryResult","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_4__","isLoading","PinchZoomImage","imageSrc","handleClick","pinchZoomProps","overLayText","itemIndex","showOverlayText","setShowOverlayText","useState","overlayTextTimerRef","useRef","current","setTimeout","clearTimeout","carouselStyles","TransformWrapper","wheel","disabled","smooth","maxScale","TransformComponent","wrapperClass","contentClass","NextImage","data-index","placeholder","blurDataURL","blurDataURLPlaceholder","Fade","open","duration","LazyReactImageMagnify","dynamic","Promise","all","e","then","bind","mod","ReactImageMagnify","ssr","CarouselImage","useMagnify","showMediumImageBeforeInteraction","showMediumImage","setShowMediumImage","dynamicImage","mediumImageURL","enlargedMediaUrl","smallImage","isFluidWidth","largeImage","enlargedImagePosition","_object_spread_props","_object_spread","onZoomStart","event","CarouselComponent","imgTitle","selectedThumbnailIndex","onImageChange","groupedLayout","showAllThumbnails","verticalLayout","classes","thumbnailClasses","carouselCaption","handleclick","controlled","onPinchToZoomImageInit","items","aprimoPDPVideosEnabled","useFeatureFlag","pinchToZoomImages","videoRefs","zoomedImages","setZoomedImages","forEach","element","controls","currentTime","pause","source","timeout","parseInt","sharedVariables","onZoomStop","state","scale","filter","imageIndex","root","Event","carouselStyle","Carousel","carouselItem","previousIndex","resetTransform","handleThumbnailClick","findIndex","img","trackImageInteractionPDP","carouselControl","carouselItemContainer","keepCaptionPlaceholder","i","type","itemKey","panning","onInit","el","video","hidden","mapAprimoUrlToBeRemoved","poster","preload","iframe","frameBorder","allowFullScreen","webkitallowfullscreen","mozallowfullscreen","loading","customLinkName","imageRank","utag","utag_data","pagetype","pagename","sitesection","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_2__","imageNumber","format360Url","uri","imageWidth","domainUrl","environmentConfig","THREE_SIXTY_IMAGE_BASE_URL","baseUrl","buildPreFooterMiddleData","cmsPrefooter","name","column_title","contents","numItemsDisplay","content","href","mergePrefooterBackendWithCMSData","preFooterBackend","preFooterCMSColumns","prefooterColumnNames","prefooterColumn","reduce","columnsToDisplay","cmsColumn","backendColumn","find","columnFromBackend","length","COLUMNS_TO_UPDATE","updatePrefooterBackendLinks","prefooterData","canonicalPath","result","columnTitle","toLocaleLowerCase","columns","startsWith","columnItem","getPageDependentPrefooterParams","productDetails","isPDP","catalogRepositoryId","product","ecommProductId","shopByMakeActive","shopByModelActive","shopByYearActive","taxonomyUrl","filterName","partTypeName","vehicleMake","vehicleModel","vehicleYear","catalogRepositoryName","make","model","year","URL","requestBaseURL","GCP_URL","requestBaseURLGCPExtOrInt","useData","usePreFooterData","prefetch","prefetchPreFooterData","createQuery","axiosInstance","getPreFooterDataForCMS","seourl","vehicleId","gcpUrlEnabled","country","getCountryFromLocale","customerType","preview","showXMPreviewDate","seoRepositoryId","seoUrl","getAxios","withCredentials","preFooterMiddle","contentGroupTitle","contentGroupMappings","mapping","linkUrl","linkLabel","usePreFooterMiddleData","usePreferredVehicle","defaultPDPContent","asPath","pathname","useRouter","getPathnameFromAsPath","catalogVehicleId","isShelf","shelf","isFetched","areProductDetailsFetched","useProductDetails","plpCMSData","isCSProductListingPageEnabled","useContentStackPLPData","catgeoryCMSData","isCatgeoryCMSEnabled","cmsContentPath","subBrandName","premiumBrands","brands","premiumPDPContent","prefooterContentStack","pageDependentParams","isUS","isCMSDisabled","categoryId","select","prefooterColumns","prefooter","column","PreFooter","isMobile","filteredData","useMemo","some","slice","MobileLinkColumn","links","DesktopLinkColumn","getSylvaniaVideos","productId","videoLocation","salesChannel","useSylvaniaVideosData","prefetchSylvaniaVideosFunc","getSylvaniaVideosQuery","useSylvaniaVideos","getPreferredVehicle","headerResult","useHeaderData","Boolean","cacheTime","getProductReviewsURL","pdpURL","phone","deviceType","useSelector","appData","cases","getImage","desktopImage","phoneImage","tabletImage","isPhone","isTablet","imagePaths","getImagePaths","imagePath","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__","_path","hasCMSPremiumTable","contentItem","product_chart","pdp_slot1","pdp_slot_content","pdp_slot2","ProductDetailMetadata","metaTitle","description","image","siteName","canonicalURL","alternateURL","hrefLang","Head","meta","property","rel","trackReadMoreLinkPdp","infoLinkName","readmoreLinkName","_extends","assign","target","arguments","prototype","hasOwnProperty","call","apply","footer_down_arrow","react","createElement","xmlns","viewBox","fill","fillRule","d","baseSkeletonProps","animation","ProductSpecificationSkeleton","Skeleton","mobileConfig","tabletConfig","desktopConfig","getConfig","ProductDescriptionSkeleton","config","ProductSpecificationRow","forwardRef","label","value","labelClassName","valueClassName","labelTestId","valueTestId","compact","TableRow","TableCell","scope","LazyWarrantyModal","WarrantyModal","ProgressModal","noScroll","label_ProductDisplayPage_body_PartNo","lblWeight","lblWarranty","label_CategoryPage_body_Notes","hyperlink_CategoryPage_body_ReadMore","hyperlink_CategoryPage_body_ReadLess","label_CategoryPage_body_ProductSpecifications","label_CategoryPage_body_ProductDescription","label_DetailsPage_body_Location","label_DetailsPage_body_ApplicationSmall","lblSkuNumber","label_product_bulletins","label_safety_data_sheets","productSpecificationConstant","ProductSpec","ProductDetailSpecification","Component","render","_this_props_product","_this_props_product_productAttributes","isBot","productSpecification","productAttributes","renderWarrantyModal","specificationCall","xl","shouldShowLoadingSkeleton","implementation","ExpansionPanel","summary","h2","renderProdSpec","seeMore","productStyles","detailsRoot","defaultExpandedProp","overrideExpanded","shouldOpenSpecsPanel","onChange","setShouldOpenSpecsPanel","expandIcon","ExpandIcon","renderSpecifications","constructor","showWarrantyModal","_this_props_setWarrantyModal","_this_props","setWarrantyModal","isShown","showModalFrom","handleWindowScroll","device","scroll","top","innerHeight","innerWidth","behavior","orientation","outerWidth","specReadLess","getBoundingClientRect","y","examplePart","setState","client","_this_specificationCall","_this_specificationCall_current","scrollable","scrollIntoView","certona","partNumberDisplay","_this_props_product1","itemWeight","partNumber","skuNumberDisplay","skuId","itemId","weightDisplay","weight","locationDisplay","pdpDetails","applicationDisplay","applicationNotes","applicationCount","applicationItem","more","specsCount","_this_props_product2","_this_props_skuDetails","_this_props_skuDetails1","_this_props_product3","_this_props_product4","_this_props_skuDetails_warranty","_this_props_skuDetails_warranty1","_this_props_product_itemPsbUrls","_this_props_product_itemMsdsUrl","techNote","quickNotes","quickNote","finalNotes","warrantyDisplay","skuDetails","warranty","button","techNotesDisplay","hasVehicle","productSpecificationDisplay","productSpecList","fullProductSpecificationList","productServiceBulletin","itemPsbUrls","msds","itemMsdsUrl","psbRows","a","Table","TableBody","renderProdDescReadMore","renderProdDescReadLess","renderProdDesc","_this_props_product_marketingCopy","_this_props_product_featuresAndBenefits","desc","marketingCopy","featureAttributes","featuresAndBenefits","featureAttributesArr","li","featureAttribute","ul","readMoreLbl","orangeReadMoreArrow","readLessLbl","orangeReadLessArrow","lineCode","warrantyModal","pdpDetailsComp","warrantyType","showWarranty","closeWarrantyModal","descriptionMoreOrLess","descriptionMoreOrLessTablet","prodDesc","readMoreButton","descMore","readLessButton","descriptionMoreOrLessMobile","createRef","ProductDetail_ProductDetailSpecification","headerData","status","productsStatus","skuDetailsResult","useProductSkuDetails","skuIds","vehicleMap","useDeviceType","pdpFulfillmentTypeMap","STOREORDER","ONLINEORDER","getMainItemFulfillmentOrGroupId","selectedAndAvailableParts","fulfillmentId","fulfillmentInSTHGroup","useSelectedFulfillmentId","every","selectedPart","availableFulfillmentIds","useSTHFulfillmentGroup","FULFILLMENT_METHODS","mainFulfillmentId","getCommonFulfillmentId","fulfillmentMethodsArray","entries","commonFulfillmentId","Number","fulfillmentMethod","postAddAffinityItemToCart","variables","isMxSite","storeNumber","NEXTDAY","SAMEDAY","mainItemFulfillmentOrGroupId","mainAndAffinityItemsFulfillmentId","itemsList","isMainItem","partHasMainFulfillmentId","partShouldUseSTHGroup","fulfillmentTypeId","quantity","post","useAddAffinityItemsToCartMutation","onSuccess","dispatch","useDispatch","queryClient","useQueryClient","mx","useMutation","mutationFn","allPartsAmount","shippingType","fetchOrderDetails","invalidateQueries","HEADER_PRIMARY_KEY","productFindingMethodList","productIdList","productPriceList","originalPartTypeIdList","productFulfillmentTypeList","productRepositoryIdList","part","totalPrice","originalPartTypeId","productFindingMethod","productRecommendationTypeList","pfmLocation","plusSignBlack","RelatedPartsPictureList","parts","handleImageClick","sessionStorage","setItem","productImageUrl","isPartSelected","productName","isAvailable","View","padding","backgroundColor","currentlyViewing","priceNotAvailable","RelatedPartCheckboxName","isCurrentPDPPart","handleSelect","price","toFixed","Checkbox","checked","Text","as","RelatedPartsCheckboxNameList","lblAssortmentTotal","lblItems","lblItem","lblAdd","lblToCart","lblGoToCart","AddToCartButtonSection","amountOfSelectedItems","itemsTotalPrice","addAffinityToCartStatus","router","cartButtonRef","isLoadingState","setIsLoadingState","addToCartButtonClicked","setAddToCartButtonClicked","isAddToCartSuccess","setIsAddToCartSuccess","onSuccessfulAdd","addToCartButtonText","strong","CartButton","emphasis","fullWidth","getErrorDetails","error","isAxiosError","errorDetails","label_items","AffinityErrorNotification","getErrorMessage","amountOfUnavailableItems","ContentContainer","withPadding","withMargin","useLabel","at","errorMessageKey","lblCompleteTheJob","lblProductQuantityText","lblFeatureNotAvailable","AffinityRelatedProductsBlock","affinityRelatedProducts","addAffinityItemsToCartMutation","mutate","addToCartMutation","addAffinityToCartError","productDetailsQuery","setParts","hasError","setHasError","mappedAffinityRelatedProducts","fulfillmentOptions","fulfillmentOption","groupId","skuPricingAndAvailability","retailPrice","itemPresentInCart","option","available","itemImageUrl","itemDescription","unavailableSkus","errorCodeDescription","prevParts","isPDPItemAlreadyInCart","acc","handleAddToCart","s","Headline","size","NotificationBlock","message","Label","mdDown","infoIcon","lgUp","RelatedPartCard","m","Card","hasHoverEffect","direction","align","justify","Item","gapBefore","grow","attributes","fontSize","maxLines","display","marginTop","CompleteTheJobDescription","fontFamily","lineHeight","lblSeeAll","lblSeeLess","lblParts","ShowAllItemsBtn","expanded","numParts","Actionable","gap","textCase","Icon","svg","ChevronDown","lblSubtotal","lblAddedToCart","SkeletonCard","boxShadow","AffinityRelatedProductsBlockV2","productDetailsData","refetchSkuDetails","itemsToDisplay","showAllParts","setShowAllParts","total","isLoadingAddToCart","addAffinityToCartSuccess","affinityRelatedProductsData","isLoadingAffinity","useAffinityRelatedProducts","isLoadingProductDetails","skuDetailsData","isLoadingSkuDetails","addedAffinityToCart","showAddedToCart","setShowAddedToCart","SUCCESS_ANIMATION_DURATION","l","Loader","hide","InfoCircle","color","CheckmarkCircle","customClass","CMSCompleteTheJob","isProductDetailsSuccess","isMobileAndTablet","shouldShowDesktopAffinityV2","useMonetateDecisionFlag","shouldShowMobileAndTabletAffinityV2","LazyPDPComparisonTable","PDPComparisonTable","CMSSEOComparisonChart","preferredVehicle","pdpComparisonEnabled","pdpComparisonAnalyticsData","repositoryId","corePrice","averageRating","totalReviews","reviewCount","parentBrandName","productImage","analyticsData","skuFitsVehicle","vehicleFitFlag","hasPreferredVehicle","BuyersGuideBanner","openBuyersGuide","lblFitmentOne","lblFitmentTwo","greyCarImg","labelThisPart","labelFitsTheseVehicles","BuyersGuideWrapper","LazyBuyersGuideModal","BuyersGuideModal","BuyersGuide","showBuyersGuideModal","setShowBuyersGuideModal","vehicleSpecificFlag","buyersGuideData","productLineCode","showModal","setShowModal","HorizontalPartCard","borderRadius","noAnimation","HorizontalScrolledPartCardSkeleton","Array","from","labelsMap","label_doesNotFitNotification_copy1","label_doesNotFitNotification_copy2","label_doesNotFitNotification_copy3","doesNotFitNotificationCTA","DoesNotFitNotification","setIsLoading","vehicle","vehicleName","isDesktopMax","b","NoFit","Button","certonaContentForOos","containerID","ADD_YOUR_VEHCILE","GET_AN_EXACT_FIT_FOR_YOUR_VEHICLE","NewCertonaForOos","breadCrumbs","certonaRecommendations","isOos","doesNotFit","logAnalytics","setCertonaRecommendationAddedToCart","setAddedCertonaItemObject","appPdpOosThisPartIsOutOfStock","appPdpOosShopSimilarItemsBelow","appPdpDoesNotFitThesePartsFit","appPdpDoesNotFitYour","labelShopAll","isCertonaEnabledForOosOrDoesNotFit","isPdpCertonaAddToCartEnabled","availableProductsForPencilLength","setAvailableProductsForPencilLength","recordType","shelfSeoUrl","routePaths","blankURL","displayOption","setDisplayOption","vehicleTextForDoesNotFit","scheme","skuNumbers","productAvailability","isFetching","productAvailabilityIsFetching","productAvailabilityIsSuccess","useProductAvailability","shownItemsAmount","pricingInfo","useGetProductSkuPrice","staleTime","updateAfterAddtoCartClick","getAvailableCertonaProducts","availableProductsForPencil","shouldShowFitmentMessage","enUS","truncateText","maxCharacters","truncatedText","trimEnd","SmartLink","decoration","CMSYmme","sub_text","titleContainerCustomStyle","ymmeTitleLabel","removeMargins","seePartsThatFitHref","CertonaBlock","onCertonaAddToCartClick","containerType","certonaType","showInitialSkeleton","inDrawer","onlyShowAvailableProductRecommendations","SkeletonWithTitle","paddingRight","THIS_PART_DOES","NOT","FIT_YOUR_CURRENT_VEHICLE","SEE_PARTS_THAT_FIT","CMSPDPYmme","isBR","setPageSpecificData","usePageSpecificData","itemFulfillmentOptions","skuAvailabilityInfo","hasStoreSelected","useIsStoreSelected","sisterStoreAvailable","ProductDetail","SEOProductSchema","isNewDealsApiEnabled","productDetailsSuccess","skuDealsData","useProductSkuDeals","productSchema","isProductAvailable","availableQty","discountedPrice","skuDealsInfo","getBaseSchemaUrl","productDescription","schema","mpn","sku","brand","priceSpecification","priceCurrency","currencyLocales","priceType","offers","availability","hasMerchantReturnPolicy","returnPolicyCategory","returnPolicyDays","returnMethod","returnFees","JSON","stringify","script","getPosition","elm","xPos","yPos","offsetLeft","scrollLeft","clientLeft","offsetTop","scrollTop","clientTop","offsetParent","x","seeMoreReviews","ReviewsContent","reviewsRef","productReviewsURL","scriptReady","data-bv-show","data-bv-product-id","reviewsHeaderLabel","BazaarVoice","isMobileDevice","isABot","queryEnabled","setQueryEnabled","productReviewsEnabled","productDetailsReqIsSuccess","hasReviews","isArray","slug","isMobileOrTablet","RR_AZRMOB_PDP_ENABLED","RR_AZRMOB_PDP_TAG","RR_AZRWEB_PDP_ENABLED","RR_AZRWEB_PDP_TAG","BZ_FIX","isScriptReadyRef","setScriptReady","customHeaderScript","setCustomHeaderScript","customHeaderScriptPath","handleEnableQuery","removeEventListener","addEventListener","hash","moveToReviews","reviewElement","document","getElementById","scrollToElem","checkingReviewsInterval","setInterval","clearInterval","intervalCleaner","reviewsEnabled","Script","onReady","async","collapsedOnLoadMobile","CMSBreadcrumbs","Breadcrumbs","formatBreadcrumbsForSTARC","breadcrumb","filterCTJBlocks","hasCustomCTJ","block","completethejob","taxonomy","hasFoundADefaultBlock","filteredContent","prioritizeLCP","priorityBannerAssigned","hasProductDetails","product_details","banner","asset_size","CMSModularHandler","onCertonaRecommendationClick","ProductDetails","canRenderComparisonChart","_param","STARCTypography","modularBlock","certonaMiddleOos","isPriorityBanner","CMSBanner","buyers_guide_mobile","enable","buyers_guide","CMSLPModularHandler","experience_injector","CMSSpacer","removeVerticalSpacing","CMSExperienceInjector","ymme","bazaarvoice","CustomHidden","smDown","bazaarvoice_mobile","mdUp","removeHorizontalSpacing","certonaContent","certona_middle_content","certona_bottom_content","certona_content_2","container_id","certonaBottomOos","certonaContentBlock","isCertonaContentPresent","recommendation","CMSCertona","LoadingSkeleton","ScrolledPartCardSkeleton","checkContainerNameIncludes","product_specification","shouldReduceSpacing","items_to_display","seo_comparision_chart","skeletonImage","skeletonThumbnails","mobileSkeletonDots","Left","thumbnail","DeliveryOption","RightSection","currencySymbol","isStoreSelected","hidePricing","usePriceHiding","hr","accessoriesOptions","get360Inventory","headers","Accept","get360InventoryKey","use360Inventory","threeSixtyImagesEnabled","isGCPThreeSixtyImageEnabled","sortOrder","getProductVideos","getProductVideosKey","useProductVideos","getGcpProductVideos","gcpProductVideosKeys","useGcpProductVideos","map360CarouselItem","threeSixtyInventoryItem","threeSixtyImagesUrl","images","bannerIcon","bannerImage","YMMESpecificInstallVideoBanner","locations","sylvaniaVideos","getGcp360Image","use360ImageInfo","prefetch360ImageInfo","useGetGcp360Image","getGcpProductVehicleImage","useProductVehicleImageInfo","prefetchProductVehicleImageInfo","useGetGcpProductVehicleImage","partCode","LazyProductImageModal","ProductImageModal","LazyEnlargedMediaComponent","EnlargedMediaComponent","label_CategoryPage_body_ImageNotAvailable","hoverToZoomLabel","tapToZoomLabel","tapImage360Label","dragImageLabel","ProductCarousel","threeSixtyImage","gcpProductsVideosResult","videosResult","vehicleData","isGcpUrlEnabled","itemMediaUrl","initializedImages","modalTab","setModalTab","pinchToZoomImagesInitialized","setPinchToZoomImagesInitialized","selectedModalThumbnailIndex","setSelectedModalThumbnailIndex","selectedPDPThumbnailIndex","setSelectedPDPThumbnailIndex","aprimoVideoTag","setAprimoVideoTag","enlargedImages","enlargedItemImageUrls","imageThumbnails","thumbnailItemImageUrls","imageData","mapToImageObject","threeSixtyInventory","urls","skus","threeSixtySkuItem","threeSixtyImageThumbnails","partTypeHasVehicleImages","partTypesWithVehicleImages","isProductVehicleImageEnabled","productVehicleImage","installVideosEnabled","sylvaniaData","installationGuideEnabled","videoThumbnails","thumbnailURL","videoURL","asset","thumbnailUrl","videoThumbnailsExist","allThumbnails","test","modalOpen","setModalOpen","enlargedMediaData","setEnlargedMediaData","enlargedMedia","enlargedMediaIsImage","enlargedMediaIs360","imageCaption","additionalThumbnails","imageCutOff","MAX_VISIBLE_THUMBNAILS","imageThumbnailLength","additionalThumbnailLength","swapLastPDPImageWithVideo","pdpThumbnails","findThumbnailIndex","thumbnails","thumbnailSrc","thumbnailObject","pdpBreadcrumb","analyticsDynamicPageName","selectModalTab","showExpandedImageModal","pdpIndex","showExpandedImagePDP","modalIndex","handleOnKeyDown","useCallback","keyCode","eventConstants","enterKeyCode","enterKeyType","handleOpenCarouselModal","Suspense","fallback","handleModalTabChange","selectedCarouselItem","tab","productVehicleImageThumbnail","pdp","onClose","threeSixtyUrls","installationGuideExist","ThumbnailComponent","thumbnailList","handleSeeMoreClick","callback","hoverEnabled","configurableSkuFlag","ConfigurableSkuBadge","customCarouselContainer","trackCustomizeSkuStart","fulfillmentID","productAvailableQuantityList","productBrandList","productPartNumberList","lowestPrice","productRequestedQuantityList","ProductAvailabilityInfoSkeleton","leftContent","rightContent","sm","ProductAvailabilityInfo_PdpPrice","dealAvailable","dealDrawerPDPEnabled","priceLabel","corePriceInfoPopover","priceInfoPopover","saveNowOrRebateBadges","count","updatedDiscountedPrice","retailPriceInt","strikeThroughPricingEnabled","totalCorePrice","clearanceItem","strikethroughPrice","ClearanceBadgeWrapper","StrikeThroughPriceWrapper","alignRight","wasPrice","showCartDiscountCaption","useShowSkeletonOrNoPrice","isFetchingLocation","configurableSku","isNoPrice","getSkeletonOrNoPrice","NoPrice","ProductAvailabilityInfo_PriceInfoPopover","itemQuantity","isStrikethrough","parseFloat","Price","dealPrice","isConfigurableSku","lblRegularPrice","lblOrderSummaryCoreDeposit","lblRefundable","labelRefundableCoreCharge","lbllineItemWhatIsIt","lblCoreDetails","labelRegularPricePlusCore","CorePriceInfoPopover","isBopusMexicoStoreEnabled","getCorePrice","formattedPrice","formatPrice","havePrice","c","coreRefundLabel","PriceOrSkeleton","showPlus","InfoToolTip","icon","header","body","divStyle","position","verticalAlign","toString","getPopoverPrices","wasRetailPrice","staticPrice","strikethroughPriceInt","updatingRetailPrice","counterPrice","dollars","cents","discountPriceArr","popoverDiscountedPrice","popoverUpdatedPrice","popoverRetailPrice","popoverRetailPriceInt","popoverDealPrice","getDealPrice","lowestPriceDollars","lowestPriceCents","retailPriceDollars","retailPriceCents","priceArray","padEnd","lblSeeSavingsInCart","lblAddToCartDiscount","ProductAvailabilityInfo_PdpPriceQuantity","availProduct","storeData","addedToCart","handleQuantityChange","availabilityCheck","eligibleForNextDay","customizeSKUs","setFulfillmentId","quantityInputDisabled","isDesktopOrTablet","useStoreDetailsData","isBopusEnabled","bopusEnabled","isMX","coreBreakdownEnabled","counterData","orderType","productInfo","unitAmount","lineItemPriceInfo","unitPrice","PdpPrice","CorePriceInfoPopOver","CorePrice","PriceInfoPopover","CartCommonCounterPart","discountedStrikeThroughPrice","isNewMessagingShown","isMini","ProductAvailabilityInfo_SeoContent","productBrand","catalogRefIdNew","setHref","lbl_ShopAll","label_Tap_to_Navigate_to_Brand_Page","ProductAvailabilityInfo_PdpTitleNotes","brandProfileEnabled","productTitle","brandURL","showShopAllLink","ariaLabel","isSharableLinksEnabled","gridSize","ShareLinkButton","lblNotes","lblReadMore","ProductAvailabilityInfo_PdpTechNotes","techNotes","onToggleClick","notes","techNotesMoreOrLess","truncateSize","isSuperSku","WiperBladeNotification","WiperBladeNotificationStyles","SuperSkus_SuperSkuOptionSelector","optionName","availableOptions","choices","currentSelection","optionsRef","shouldHideRightArrow","setShouldHideRightArrow","shouldHideLeftArrow","setShouldHideLeftArrow","checkScrollPosition","scrollWidth","clientWidth","Math","ceil","scrollTo","offset","left","enabledOptionValues","getOwnPropertyNames","choice","otherOptionNames","enabledChoices","otherOptionName","handleOptionClick","selected","newSelection","newChoice","productDetailsPageUrl","SuperSkuStyles","wrap","LazySearchStoreModal","resolve","SearchStoreModal","lblUnit","lblCoreText","lblAddToCart","viewDealsItem","customizeYourFloorMats","setVehicleFit","lblFindAtNearbyStore","lblSelectStore","lblFits","lblDoesntFits","lblNoVehicle","lblPlus","lblPartNo","lblLocation","lblReadless","lblApplicationSmall","lblWhatIsIt","dealMakerCore","label_CategoryPage_body_Pinch2Fingers","lblCheckNearbyStores","lblDetailsPagebodySelectStore","label_CategoryPage_body_SaveNow","label_CategoryPage_body_PriceCut","label_instant_saving","lblMailinRebate","lblProductPartNumber","label_DetailsPage_body_PartNumber","labelSeeProductPrice","label_update_cart","lblSetVehicleToSeePricing","label_check_nearby_stores","label_for","labelUpdateCartToProductItems","partNumberLabelBopusMX","pdpCheckFits","ProductAvailabilityInfo","optionsThatAreDisplayed","shouldShowSkeleton","autoFocus","onAddToCartCall","productData","oemBrandName","oemPartNumber","xFusionQueryId","sisterStoreContext","useContext","SisterStoreContext","storeDetailsData","mutateAsync","patchOrderItem","usePatchOrderItem","isBopusNewMsgApplicable","checkoutNearbyStoresEnabled","updateCartEnabled","isSuperSkusEnabled","productEdited","setProductEdited","prevGroupId","setPrevGroupId","prevGroupIdInCart","setPrevGroupIdInCart","pdpDealsModelOpen","setPdpDealsModelOpen","showYmme","setShowYmme","storeModalOpen","setStoreModalOpen","displayQuantityWarningMessage","setDisplayQuantityWarningMessage","disableRemoveButton","setDisableRemoveButton","payPalIsLoaded","setPayPalIsLoaded","productAddedToCart","setProductAddedToCart","determineOptionsToDisplayButtons","selectedItemId","determineIndexButtonToBeSelected","fulfillmentTypeIdOriginal","selectedFulfillmentTypeIdOriginal","setSelectedFulfillmentTypeIdOriginal","seeDealsButtonRef","prevProductDetailsUpdate","usePrevious","productDetailsUpdatedAt","prevSkuDetailsUpdate","skuDetailsDataLastUpdatedAt","prevSkuId","handleDealsModal","handleCloseModal","ratingView","ratingElement","shouldDisplaySuperSkus","currentSuperSkuSelection","selectedOption","selectedValue","skuAvailableQuantities","getAllAvailableQuantitiesForSku","quantityErrorMsg","showQuantityWarningMessage","fulfillmentV2Id","setCount","setRetailPrice","quantityInCart","pdpAddToCartSuccess","sthQuantity","groupTypeId","shouldShowMessage","newQuantity","abs","getFormattedPriceMultiplied","fulfillmentGroupSelectedInCart","fulfillmentSelectedInCart","groupFulfillmentOptions","fulfillmentMethodChanged","changeShippingTypeV2","maxAvailableQty","isSisterStoreAvailable","setShippingType","setGroupId","changeShippingTypeV3","setShippingTypeChanged","selectedFulfillmentId","getSelectedFulfilmentID","handleFulfillmentIdUpdate","observer","MutationObserver","mutations","mutation","addedNodes","paypalMessage","observe","childList","subtree","disconnect","handleShowReviewAnalytics","showReview","updateCart","selectedFulfillmentOption","startGroupId","prevcartCount","productIdFromProductDetails","addToCartPayload","skuDetailsQueryOptions","getProductSkuDetailsFromCache","updatedSkuDetails","skuDetailItem","newArr","skuDetailsKey","getProductSkuDetailsKey","setQueryData","getItem","productType","trackNearbyStoreUpdate","skuNumber","productPrice","productRepositoryId","requestQuantity","productPartList","storeId","storeSearchTerm","fullFillmaxQuantity","allFulfillmentOptions","fulfillmentIdChange","cartConstants","SDD","STH","fulfillmentChange","BOPUS","shipToHomeAvailable","checkAvailabilityByGroupTypeId","storePickupAvailable","selectedShippingType","getFulfillmentOption","defaultFulfillmentOption","trackQuantityChange","String","removeItem","trackFulfillmentChange","trackQuantityFulfillmentChange","addToCart","addToCartRequest","sku_id","product_id","category_id","order_type","catalog_vehicle_id","store_number","getXFusionQueryId","productAvailableQuantity","productStrikeThroughPricing","getProductStrikethroughAnalyticValue","getMaxAvailQtyFromOptions","productPartNumber","productFulfillmentOptionSeenByCustomer","isAffinityRecommendation","onSettled","refetchProductData","setQuantityInCart","setTrackQOHError","cart","addToCartDisabled","isMxWeb","storeSelected","fulfillmentGroupTypeIds","shipToHome","storePickup","isNotAvailable","specElement","viewportOffset","pageYOffset","productInfoConstants","goToCart","toggleStoreModal","displayDeals","mainImage","skuDescription","DealsModal","openDialog","catalogRefId","pdpDealsButton","aZBadgesFlagVO","rightArrow","itemDetail","dealIcon","pdpRatingPartWarrantyLocation","warrantyDetails","skuDisplayClass","ProductCrossReference","ProductMetaLabel","WarrantyBadge","warrantyMonths","pdpPriceQuantityToggle","rebatesAvailable","skuRebatesInfo","rebateUrl","rebateShortDesc","availabilityInfoVO","fulFillmentOptionsV2","selectedGroupFulfillmentHasDealsAvailableQty","o","dealsAvailableQty","availableQuantity","showStrikeThroughPricing","showDealDrawerButton","showDealDrawerButtonV2","dealInfo","RebateOnlyBadge","badgeDetails","withShortDescription","SaveNowBadge","dealsCheck","usFulfillmentOptions","FulfillmentOptionsV2","fulfillmentOptionsGroupList","changeShippingType","isDealDrawer","OldFulfillmentOptionsV2","fullFillmentOptionDisplay","FulfillmentOptionsMX","hasDealBadge","val","itemData","inline","nddQuantity","sddQuantity","PdpPriceQuantity","DealsDrawerButton","showBundleDealsDrawer","dealConfigurableLabel","MaxQuantityNotificationBlock","selectedFulfillmentID","selectedQuantity","keys","SuperSkuOptionSelector","techNotesDisplayRender","FulfillmentOptionButtonsV2","setShowBundleDeals","PdpTechNotes","handleShowYmmeFitment","vehicleFits","setInteractionLocation","renderFitmentBadge","hideLabel","fittingPartsURL","FitmentButton","fitsVehicle","toggleShowYmme","onClickSeeFittingParts","renderPdpProductLocation","buttonAddToCart","ariaLabelAddProductToCart","ariaLabelCheckNearbyStores","ariaLabelUpdateCartWithQuantityProduct","interpolateLabel","handleOnClick","isStoreOrder","toggleSisterStoreFlyout","openConfigurableSku","storeAndAddToCartObj","addToCartButtonLoading","calcAriaLabel","calcButtonLabel","closeStoreModal","showMonetateRewardsFlag","startDate","bonusRewardStartDate","endDate","bonusRewardEndDate","eligibilityDates","getEligibilityDates","isEligibleNow","isWithinEligibilityPeriod","rewardsEligible","bonusRewardEligible","showRewardsBadge","setStoreAndAddToCart","sanitizedQuantity","isNaN","isSettingNewStore","getElementsByClassName","rating","innerText","analyticsPDPReviewRating","productStarRating","invalidDataCheck","productReviewCount","analyticsDataLayerVariable","storePickupStockLabel","outOfStock","notAvailable","changeFindProduct","callToCertona","certonaPageType","cartAdd","vehicleID","prevShippingType","startCount","currentPrice","getStaticFormattedPrice","shippingTypeChanged","newFulfillmentId","getSelectedFulfilmentForSelectedQty","startShippingType","convertFulfillmentTypeToOrderType","fulfillmentIdInCart","getSelectedFulfillmentInCart","isSisterStoreFlyoutOpen","storePickupFulfillmentId","availableFulfillmentId","storeChanged","setStoreChanged","defaultShippingId","getFulfillmentId","LeftSectionSkeletonLoading","RightSectionSkeletonLoading","pdpRightContent","brandUrl","RewardsBadge","amount","bonusRewardAmount","rewardsHeader","bonusRewardCopy","rewardsBody","bonusRewardLegal","PdpTitleNotes","SeoContent","YMMEModal","closeYmmeWidget","onUpdateVehicleSuccess","ProductDetail_productDetailAnalytics","autoCorrectedKeyword","searchRedirectText","vehicleSpecific","productNotAvailable","fulfillmentAvailabilityList","clearanceList","sisterStoreAvailableList","productFitmentCheckMessage","productDealMessage","createItemFulfillmentAvailabilityString","dealBundleCountList","discountAmount","discountCalc","floor","discountDisplay","bopusList","nddEligibleList","sthList","dealFlag","sthSpecialOrder","specialOrder","vdp","availableInVdpStore","productCorePrice","bopus","sth","ndd","nddaftercutoff","productPartTypeIdList","sthSpecialOrderList","productPart","searchResultCount","useHandleRedirect","redirectPath","updatedRedirect","searchText","filterByKeyWord","parsedPath","searchParams","sanitizedPath","isEmptyObject","Router","LazyMiniCart","MiniCartModal","LazyMiniCartFlyoutComp","MiniCartFlyoutComp","LazyProductCustomizableSKU","ProductCustomizableSKU","siteSectionPdp","siteSectionCatalog","trackSortFilter","trackPdpQoHFailure","qohErrorAnalyticsData","convertOrderTypeToFulfillmentType","productCorePriceList","productDiscountPriceList","qohErrorMessage","errorMessage","qohErrorMsgType","getSylvaniaVideoNames","videos","videoNames","singleVideo","components_ProductDetail","_this","addToCartCall","clearProductPageData","addingToCartStatus","cartSuccess","err","addToCartErr","useAddToCartWithMiniCart","cartSuccessNote","isUtagDefined","pageSpecificData","productFindingMethodFromHook","callPageView","useScrollIntoViewDOM","lazyMiniCartModalRef","analyticsExecuted","setAnalyticsExecuted","miniCartFlyoutVisible","setMiniCartFlyoutVisible","certonaRecommendationAddedToCart","toggleMiniCartFlyout","toggleCertonaMiniCartFlyout","setShowCertonaMiniCartFlyoutModal","showCertonaMiniCartFlyoutModal","getCurrencySymbol","recommendationsClicked","setRecommendationsClicked","customizeModalOpen","setCustomizeModalOpen","addedCertonaItemObject","miniCartMap","minicart","miniCartSuccessNote","refetch","isCSPDPEnabled","isDefaultPDPFetched","isDefaultPDPFetching","isPremiumPDPFetched","isPremiumPDPLoading","useContentStackLivePreview","isPDPContentFetched","productSkuId","sylvaniaRequestIsSuccess","productDetailsSEOMetadata","seoMetaData","prevSkuDetailsData","dealsAddedToCart","setDealsAddedToCart","showBundleDeals","DLM_PDP_ENABLED","desktopMiniCartFlyoutEnabled","mobileMiniCartFlyoutEnabled","tabletMiniCartFlyoutEnabled","strikeThroughPricingFlag","shouldShowDealsButton","superSkuDoesNotFit","redirectURL","isSuperSkuPage","isSuperSKUFitmentRedirectEnabled","superSkuRedirectPath","orderDetailsReadyStatus","orders","details","readyStatus","parentShelfPage","disableCertonaCall","setDisableCertonaCall","crumInfo","displayName","isAccessories","orderDetailsFromState","selectOrderDetailsFromState","trackQOHError","setOemPartNumber","setOemBrandName","isRedirect","previousPath","handleStoreChanged","setPreventLoadingSkeletonFromShowing","resultsChangesAfterRecommendationsClicked","acceptableReadyStatus","pdpUtagViewAffinity","productFindingMethodFromUtag","dynamicPageName","breadCrumbList","crumb","categoryLevel1","categoryLevel2","categoryLevel3","categoryLevel4","lwTestExperience","performedSearch","productRank","analyticsViewPayload","searchMethod","toUpperCase","seoPopularSearches","seoPopularSearchesClick","productDetailAnalytics","prodView","eventTypes","skuView","tvVideoName","videoAvailable","vehicleSpecificImage","analyticsDataToRemove","history","scrollRestoration","getPaymentOptionList","fetchPaymentOptions","activeCache","setActiveCache","showMiniCartModal","setShowMiniCartModal","showMiniCartFlyoutModal","setShowMiniCartFlyoutModal","preventLoadingSkeletonFromShowing","prevStoreNumber","prevVehicleId","checkToOpenMiniCartModal","pencilpdp","accessoriesProductPage","useGetCertonaRecommendations","Category1","parttype","formatPartTypeId","useAutoCloseOnOrderReady","jsTrackTimeOut","sortFilterList","querySelectorAll","dealDrawerOpen","formattedUrl","stringifyUrl","skipNull","submitToCart","setDealDrawerOpen","setAutoFocus","canRenderCMSComparisonChart","pageBody","closeDealsDrawer","isBundleDealDrawerOpen","handleDealsAddToCart","onContinueShopping","isError","ErrorPage","brandCode","configurableBrandCode","productLine","alternateUrl","refLanguage","renderProductCustomizableSKU","fixedHeaderWrapper","zIndex","dataUpdatedAt","actionTypes","UPDATE_ORDERITEM_REQUESTING","renderMiniCart","productDetailsForMiniCart","productAvailabilityInfo","Drawer","anchor","PaperProps","drawerRef","TrapFocus","aria-modal","handleClose","isModalOpen","successData","productPartType","dealsInfo","miniCartData","cartUrl","parentRef","cartSuccessData","certonaItemAddedTocart","partType","partTypeId","FeatureFlag","flag","DynamicLinks","DealDrawer","analyticsPageType","catalogProductDetail","skuRetailPrice","skuFulfillmentTypeId","skuQuantity","skuIsVehicleSpecific","unstable_JsPreload","ProductDetailsPage","SisterStoreProvider","getInitialProps","context","req","store","res","getLayout","ProductListProvider","page","_slug_","breadcrumbs","shouldModify","defaultBreadcrumbs","pop","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_0__","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__","breadCrumbData","displayNameData","bredCrumb","shift","nativeSmoothScrollTo","smoothScrollTo","scrollingElement","documentElement","Date","easeInOutQuad","t","animateScroll","currentDate","requestAnimationFrame","supportsNativeSmoothScroll","__webpack_exports__","Z","isSafari","sections","extension","module","exports"],"sourceRoot":""}